Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Stokpan opened this issue Sep 6, 2023 · 2 comments

Comments

@Stokpan
Copy link

Stokpan commented Sep 6, 2023

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
Copy link
Owner

zufuliu commented Sep 6, 2023

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

@Stokpan
Copy link
Author

Stokpan commented Sep 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants