4coder » Forums » Keyword Highlighting
Zellione
Sebastian
5 posts
#14020 Keyword Highlighting
1 month, 1 week ago Edited by Sebastian on Jan. 15, 2018, 4:10 p.m. Reason: Initial post

Hi,

first I want to thank you for this real nice editor. I really like to work with it.

Since I got used to the highlighting of comments like in caseys emacs file (NOTE, TODO, ...) I wanted to ask how far away this feature is ?

Is it currently possible to achieve this feature with the customization API ? If so, please hint me a little bit.


Cheers,

Zellione
Jim0_o
Jim R. Didriksen
55 posts
#14021 Keyword Highlighting
1 month, 1 week ago

https://4coder.handmade.network/f...mplementing_shift_based_selection

Is this what you mean't? If so this is a bit more than a hint.

- Jim RMHD
Zellione
Sebastian
5 posts
#14022 Keyword Highlighting
1 month, 1 week ago

No, I don't think this is related.
nicoco
nj
21 posts
#14023 Keyword Highlighting
1 month, 1 week ago

Currently (AFAIK) it isn't posiible to highlight a word inside of a comment, but you can add your own keywords for stuff like "global_variable" "internal" etc.
I think that it's planned to add support for custom highlights in future versions though.
Mr4thDimention
Allen Webster
316 posts
2 projects

Heyo

#14030 Keyword Highlighting
1 month ago

Everything nicoco said is right. You can add keywords but nothing in a comment is treated as a keyword. The plan is to get to a system sometime this year that will greatly open the customizability of how exactly the buffer is shown, which will include arbitrary coloring rules.