The Influence of Syntax Highlighting on Scanning and Reading Behaviour for Source Code

T. Beelders, J. D. Plessis
{"title":"The Influence of Syntax Highlighting on Scanning and Reading Behaviour for Source Code","authors":"T. Beelders, J. D. Plessis","doi":"10.1145/2987491.2987536","DOIUrl":null,"url":null,"abstract":"The digital market, including electronic books, has grown substantially over the past few years. The abundance of information may be particularly useful within academic fields. However, certain disciplines, such as computer science, may require additional considerations regarding formatting for electronic text books. This study investigated the influence of syntax highlighting on reading source code snippets, as it pertains to the two distinctive phases present when reading code. Participants were presented with a code snippet in either black-and-white or using standard syntax highlighting. Fixation timelines indicated that the distinctive phases exhibited when programmers read an unfamiliar code snippet, were present regardless of the presentation of the code. Furthermore, neither the fixation durations nor the number of fixations were significantly influenced by the presence (or absence) of syntax highlighting. Additionally, paired tests indicated that the reading behaviour of participants did not differ between the scanning and the reading phase, signifying that the cognitive load is not significantly different between phases. It can therefore be concluded that the lack of syntax highlighting does not adversely affect the reading behaviour present in the phases of code reading.","PeriodicalId":269578,"journal":{"name":"Research Conference of the South African Institute of Computer Scientists and Information Technologists","volume":"163 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-09-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"14","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Research Conference of the South African Institute of Computer Scientists and Information Technologists","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2987491.2987536","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 14

Abstract

The digital market, including electronic books, has grown substantially over the past few years. The abundance of information may be particularly useful within academic fields. However, certain disciplines, such as computer science, may require additional considerations regarding formatting for electronic text books. This study investigated the influence of syntax highlighting on reading source code snippets, as it pertains to the two distinctive phases present when reading code. Participants were presented with a code snippet in either black-and-white or using standard syntax highlighting. Fixation timelines indicated that the distinctive phases exhibited when programmers read an unfamiliar code snippet, were present regardless of the presentation of the code. Furthermore, neither the fixation durations nor the number of fixations were significantly influenced by the presence (or absence) of syntax highlighting. Additionally, paired tests indicated that the reading behaviour of participants did not differ between the scanning and the reading phase, signifying that the cognitive load is not significantly different between phases. It can therefore be concluded that the lack of syntax highlighting does not adversely affect the reading behaviour present in the phases of code reading.
语法高亮对源代码扫描和阅读行为的影响
包括电子书在内的数字市场在过去几年里有了长足的发展。丰富的信息在学术领域可能特别有用。然而,某些学科,如计算机科学,可能需要额外考虑电子教科书的格式。本研究调查了语法高亮对阅读源代码片段的影响,因为它涉及阅读代码时出现的两个不同阶段。参与者可以看到黑白或使用标准语法高亮显示的代码片段。固定时间线表明,当程序员阅读不熟悉的代码片段时,无论代码的呈现方式如何,都会出现不同的阶段。此外,注视的持续时间和注视的次数都不受语法高亮的存在(或不存在)的显著影响。此外,配对测试表明,被试的阅读行为在扫描和阅读阶段之间没有差异,这表明认知负荷在两个阶段之间没有显著差异。因此,可以得出结论,缺乏语法高亮并不会对代码阅读阶段的阅读行为产生不利影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信