Developers who don't use syntax highlighting in their code editors are clearly psychopaths. I mean, who willingly chooses chaos?
@nixCraft there ain't syntax highlighting with enough colors for the bracketing on Javascript!
@nixCraft
Same with light mode! ๐Ÿ˜†
BTW that's the reason why I can't watch some video tutorials, in cases when the programmer uses a white editor background ๐Ÿ˜ฏ
@amarok @nixCraft To be fair, video container used to upload on platform like YouTube may cause artifacts on a close range mix of dark and funny colors. I didn't test with greyer background, though. And artifacts can be mitigated by a proper text size upon recording, oh well...
@nixCraft I used to work with a very gifted C programmer who insisted on coding in ... joe.

@klausman @nixCraft I still do. It does have syntax highlighting these days, though.

Having learned programming in the Turbo Pascal editor, using Joe is just so much easier than trying to learn a new set of keybindings...

https://dev.mycrobase.de/gitea/cn/joe-syntax

joe-syntax

JOE (Joe's Own Editor) syntax coloring and highlighting files - improved ones

Gitea
@nixCraft I don't, I use error sounds because I'm blind lmfao
@nixCraft I know one such dev fairly well. It made me realize how arbitrary the common syntax highlighting systems are. It's just a rainbow-colored soup that has little logic to it, apart from coloring comments and strings, and maybe keywords. Everything else is very arbitrary at its best and very inconsistent at its worst. Especially before the advent of LSP and tree-sitter.
tadzik (@[email protected])

@nixCraft Many years ago (12, apparently), I met a guy who did just that. His argument was โ€œI already know which syntax element is which, I donโ€™t need no training wheels for thatโ€.โ€œHow dumb!โ€ I tho...

@tadzik @nixCraft @vifon thanks for offering an opposite view ๐Ÿ˜„ that's brave! I'll still stick with my colors tho - not even because it's useful, but because I like colors and it makes me happy!

@nixCraft

I wonder why nobody develop a syntax highlighting for English so people can use it on Kindle, Word processors, newspaper and books.

@nixCraft Some of us learned back in the old days. We had no colours to highlight syntax because the whole world was monochrome until Sir Clive Sinclair invented the visible light spectrum in 1982
@nixCraft I disable all highlighting except for string and comments. I find the extra coloring extremely distracting.
(back then, I loved my black&white IBM PS/2 display, so silky)
@expiredtoken @nixCraft fellow former PS/2 connoisseur here ๐Ÿ‘‹ did you also have the Model M keyboard to go with it? ๐Ÿคค
@bazkie @nixCraft Nope it was a nice clicky keyboard but not the legendary Model M ๐Ÿ‘‹.
@nixCraft I have actually started to dial back the highlighting using the Alabaster theme. The creator Nikita Prokopov explains it nicely here:
https://www.youtube.com/watch?v=l1b7Da2DnPo&t=833s
Building My Own Clojure Tools - Nikita Prokopov (tonsky)

YouTube
@nixCraft Still, I wish I had semantic highlighting, and not only syntax highlighting. Something that could colour variables differently, so that I can easily spot where I have used j as the array index instead of i would significantly reduce the risk of introducing new bugs.

@nixCraft Or vi(1) and ed(1) users. How do you think syntax highlighting was implemented, plus you need a colour screen (beyond mono green or amber screens (or line printers)).

cc:@ed1conf

@nixCraft i still do this on purpose sometimes as it can help to focus and understand the code more comprehensively
@nixCraft I'm probably a psychopath. j/k but it would be interesting to study the rationale behind different choices of colors in syntax highlighting and CLI in general.

@nixCraft

*coughs*

@ed1conf @nixCraft is the choice editor capability or editor?

@drscriptt @nixCraft

If you want syntax highlighting in ed(1), you can pipe contents through a syntax-coloring tool like pygmentize

$ ed example.py
3141
10,20w !pygmentize -l python

Command Line Interface โ€” Pygments

@nixCraft , meh, syntax highlighting isn't very helpful for me. It's distracting more than helpful.

@nixCraft

I have never experienced a syntax highlighter that worked correctly on my perl. I often spend more time tracking down why the highlighting is wrong than fixing actual bugs.

Of course, I write comically evil code, so 

@mwl to improve readability of your perl code, might I recommend setting all your syntax colors so the foreground and background colors are the same? 

$ edc() { tput AF 0 AB 0; ed "$@" ; tput me ; }
$ edc mwlcode.pl

@ed1conf @mwl does anyone remember the โ€œinsaneโ€ mahjong tile set from the 30+ year old DOS VGA mahjong game?
@nixCraft
That's why we code in `vi`
@nixCraft Theyโ€™re crazier than the people who use spaces for indentation!
@nixCraft Some people just want to watch the source code burn.

@nixCraft Iโ€™m the ultimate devil then, because I use a white theme, no syntax highlighting, and code on nano.
>:-)

Itโ€™s not that I donโ€™t see the value in highlighting, but itโ€™s often a distraction. The only highlighting I end up finding useful is that of multi line comments, and thatโ€™s a rare case for me.

@nixCraft Unfortunately ed does not support syntax highlighting. Sometimes you have to make sacrifices :(

@nixCraft
the GOP does.

oh sorry. i'll run away now.

@nixCraft vim 5.3 on my Amiga canโ€™t handle syntax. Same with ThinkC on Macintosh Classic.