{"title":"语法高亮对源代码扫描和阅读行为的影响","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":"{\"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}","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}
The Influence of Syntax Highlighting on Scanning and Reading Behaviour for Source Code
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.