Sverrir Thorgeirsson
07/05/2020, 12:20 PMOur findings indicate that current IDEs possibly waste a feedback channel to the developer with an ineffective code highlighting scheme. This feedback channel could convey more meaningful information, for example the font colour could encode the type of function in terms of its namespace.In other words, "semantic highlighting" could be more beneficial for programmer productivity, a paradigm that "attempts to reveal the meaning of the code" instead of just "identifying syntactic elements" [source]. This can mean something simple like giving each variable its own colour, but I think it can also incorporate more creative ideas. I found two IDE packages for semantic highlighting: SemanticColorizer for Visual Studio and semanticolor for Atom. Has anyone here has used those packages (or something similar) and found them useful? I'm also interested what opinions you have about syntax highlighting in general (I've already read Rob Pike's opinion). 🙂
Ionuț G. Stan
07/05/2020, 1:32 PMIonuț G. Stan
07/05/2020, 1:36 PM[]
are on different type occurences.Tyler Adams
07/05/2020, 1:46 PMS.M Mukarram Nainar
07/05/2020, 1:54 PMFelix Kohlgrüber
07/05/2020, 2:50 PMXandor Schiefer
07/05/2020, 4:29 PMFelix Kohlgrüber
07/05/2020, 5:26 PMDoug Moen
07/05/2020, 8:29 PMold code
differently, so I can quickly see that a large block of code is disabled even if I can't see the preprocessor #
tags that disabled it. That's useful. Ditto for colouring block comments and multiline string literals. On the other hand, giving each token on a line a different colour is just visual noise.Kartik Agaram
https://i.imgur.com/EmFMTtv.png▾
Kartik Agaram
Ivan Reese
Ivan Reese
Ivan Reese
Ivan Reese
Kartik Agaram
Ivan Reese
I found two IDE packages for semantic highlighting: SemanticColorizer for Visual Studio and semanticolor for Atom.I'm using the Atom plugin. It automatically generates colors based on the text of each word, using some sort of hashing I presume. The colors are consistent between files, across restarts, etc. The plugin, as I have it configured, ignores language keywords, literals, operators, comments, and a few other things.
Kartik Agaram
Kartik Agaram
Kartik Agaram
Xandor Schiefer
07/22/2020, 7:35 AM