zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.56k stars 179 forks source link

< and > characters shouldn't be considered as brackets in C (and any other programming language) #715

Open Stokpan opened 11 months ago

Stokpan commented 11 months ago

In most languages, < and > are comparison operators and they should not be considered as brackets.

notepad2 should therefore not be trying to match them by color or anything else.

zufuliu commented 11 months ago

C has #include <header>, other language has C++ like generic type name <T>, or HTML/XML <tag>.

Stokpan commented 11 months ago

HTML/XML isn't a programming language and angle brackets are essential markup, so you're right about it.

But in C and the rest, these are used mostly for comparisons and it's really confusing when I write expressions and see < and > become red when I move over them with the cursor.