arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2001.11334cs.SE
收藏

为什么每个人都应该使用颜色?代码段之外的突出显示

Why Should Anyone use Colours? or, Syntax Highlighting Beyond Code Snippets

Marco Patrignani

摘要:

以颜色和字体多样化的形式突出显示是一个很好的工具,可以使文字清晰,简洁和正确。不幸的是,这种做法并没有被广泛采用,这通常会导致难以解析的文件。缺乏采用的原因是研究人员经常难以接受新技术,堆积了令人信服的动机。本文反对这种动机,并证明使用句法突出,以便它可以成为一个新的标准,传播更清晰,更容易理解的研究。此外,本文报告了批评的基础上使用语法突出的LATEX的缺点,并提出了补救措施。我们相信这篇论文可以作为使用语法高亮的指南,也可以作为对抗不令人信服的动机的参考。

英文摘要:

Syntax highlighting in the form of colours and font diversification, is an excellent tool to provide clarity, concision and correctness to writings. Unfortunately, this practice is not widely adopted, which results in often hard-to-parse papers. The reasons for this lack of adoption is that researchers often struggle to embrace new technologies, piling up unconvincing motivations. This paper argues against such motivations and justifies the usage of syntax highlighting so that it can become a new standard for dissemination of clearer and more understandable research. Moreover, this paper reports on the criticism grounded on the shortcomings of using syntax highlighting in LATEX and suggests remedies to that. We believe this paper can be used as a guide to using syntax highlighting as well as a reference to counter unconvincing motivations against it.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑