3 ms·
Syntax highlighting only helps with the easy stuff. It doesn't do anything for std::array<std::shared_ptr<Window>, max_window_count>{}; or s.lines()
by Animats 10y ago
Syntax highlighting only helps with the easy stuff. It doesn't do anything for
std::array<std::shared_ptr<Window>, max_window_count>{};
or
s.lines()
.map(|bline| UnicodeSegmentation::graphemes(bline, true)
.collect::<Vec<&str>>())
.map(|line| wordwrapline(&line, maxline, maxword))
.collect::<Vec<String>>()
.join("\n")
because nothing there is a language keyword.
- wmu 10y agoA highlighter in Visual Studio is able to distinguish (at least) preprocesor definitions, variables and class names.
- jobigoud 10y ago> because nothing there is a language keyword What editor are you using where the highlighter doesn't identify user-defined types, member functions, namespaces, local variables? Maybe you don't realize it has these capabilities because it's configured to highlight them with the default?