News for hackers. Stuff that matters.
Re:Build Your Own Text Editor by davorb on Thursday April 06, 2017 @02:58AM (#14048511)
> So if you want to color every different part like operators, symbols, braces, with a different color, and you try to do this on C++, it is not going to be a small task...

For a lot of modes, Emacs does this using regex.

Re:Build Your Own Text Editor by jokoon on Saturday April 08, 2017 @03:43AM (#14065831)
Running a regex each time you type a character seems a little heavy to me...

Regex'ing languages like HTML or C++ can be quite mind breaking... I think.