Syntax highlighting

Discussion related to "Everything" 1.5.
Post Reply
lifu
Posts: 39
Joined: Tue Jun 15, 2021 11:04 pm

Syntax highlighting

Post by lifu »

The new improvements to syntax are great, but it made me realize that a large part of what can make the syntax difficult at times is the lack of coloration like you might see when editing code in an IDE.

Furthermore, < and > are rather blocky grouping brackets that are even more difficult (for me at least) to distinguish sub-groups from. If there could be different colorations for subgroups to help them stand out, that would be very useful. (Maybe alternating between two, or cycling through defined colors on how many nested groups to provide unique colors for.)

EDIT: Oh, and when there's regex, highlighting when a \ represents an escape would be helpful too. You could potentially implement a subsystem for regex system highlighting, but escape highlights would be useful enough on their own.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax highlighting

Post by void »

Thank you for the feedback.

The stock Windows edit control is rather limited.
It doesn't support syntax highlighting.

I have on my TODO list to write my own edit control with syntax highlighting support.
Thank you for the suggestion.
lifu
Posts: 39
Joined: Tue Jun 15, 2021 11:04 pm

Re: Syntax highlighting

Post by lifu »

void wrote: Mon Jun 23, 2025 1:36 am I have on my TODO list to write my own edit control with syntax highlighting support.
Shoot, did I miss it somehow? I checked titles of past threads and searched the linked TODO list (from the 1.5 download thread) for several keywords and didn't see anything like that.

Also, what about using a RichEdit control?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax highlighting

Post by void »

I need to explore what is possible with a RichEdit control.
This is also on my TODO list.

I don't want users to be able to format text in the search box so it would have to be trimmed down a lot.
Thank you for the suggestions.
Post Reply