Re:“Hello world” in the BCPL language on the Xerox Alto simu...
by akkartik on Monday June 27, 2016 @09:27PM
(#11990866)
As an example of persistent-but-customized, check out this plugin of mine (in an inferior editor, sadly ;) which lets me highlight specific words in a random but persistent color: https://www.reddit.com/r/programming/comments/1w76um/coding_.... When I'm reading a strange codebase, finding a couple of key variables to colorize immediately causes the data flow of a function to "pop out" to my eyes.
[ Parent
| on HN ]
Re:“Hello world” in the BCPL language on the Xerox Alto simu...
by TeMPOraL on Monday June 27, 2016 @09:40PM
(#11990908)
Nice work on a plugin.
I still have that experimental buffer opened, so I used the features for highlighting I described to highlight words "let", "buffer" and "create" with highlight-symbol-at-point, and the lines containing word "foo" with highlight-line-matching-regexp:
http://i.imgur.com/ubXumzK.png
The last four lines were generated by calling M-x hi-lock-write-interactive-patterns. If you save them in the file, Emacs can reload and reapply those highlights in the future.
I use it mostly when browsing log files, though the feature is useful for code too. Since I'm addicted to traditional syntax highlighting, I prefer the background change when highlighting code.
Re:“Hello world” in the BCPL language on the Xerox Alto simu...
by akkartik on Monday June 27, 2016 @09:48PM
(#11990934)
Yeah, I think what you showed is exactly what my plugin was going for. To get more fine-grained than that we'd need a smarter editor that understands markup. Fun conversation! I just shot you an email.