Or maybe syntax highlighting for the scope I'm in and structure for the rest.
I often use the folding/nesting indicators when reading code, it would be an extension of that.
21–24 of 24 posts
Or maybe syntax highlighting for the scope I'm in and structure for the rest.
I often use the folding/nesting indicators when reading code, it would be an extension of that.
This made me think that it would be useful to have different, easily switchable highlighting modes: syntax and symbols when I'm writing, structure when I'm reading code. Or maybe syntax highlighting for the scope I'm in and structure for the rest. I often use the folding/nesting indicators when reading code, it would be an extension of that.
I last used SourceInsight circa 2005 so I have no idea about its current status
This made me think that it would be useful to have different, easily switchable highlighting modes: syntax and symbols when I'm writing, structure when I'm reading code. Or maybe syntax highlighting for the scope I'm in and structure for the rest. I often use the folding/nesting indicators when reading code, it would be an extension of that.
[0] http://alols.github.io/2012/11/07/writing-prose-with-vim/
The best highlighting is no highlighting at all. Think about it. You've read that the best programs read like a book. Now picture a book you are reading where the title, subject, nouns and verbs were all colored in some way. Try and read smoothly through that forest and think about highlighting some more. There are a number of articles about reading on the web and how you highlight links without interrupting the flow…
If human languages were written for one more-or-less uniform reader, I'd love a feature that showed how people would resolve pronouns ("Mary gave Sue her laptop.") or ambiguous attachment in general. Granted that's semantic, and probably closer to the feature in some editors where other instances of the same variable are highlighted on hovering, but they are both a form of visual feedback as to how the input token stream will be interpreted. I'd also say it's more important to get that information with a computer, because humans are pretty good at error recovery, and can often resolve syntax errors at the semantic level ("This sentence doesn't make sense; presumably it's a typo and was meant, because that makes sense in context.")
In fairness, I dislike most highlighting schemes, but they definitely have a certain value.