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

[Issue] How to change Syntax highlighting #333

Open
gian9959 opened this issue Sep 8, 2022 · 2 comments
Open

[Issue] How to change Syntax highlighting #333

gian9959 opened this issue Sep 8, 2022 · 2 comments

Comments

@gian9959
Copy link

gian9959 commented Sep 8, 2022

I really like this minimalist editor but I can't seem to find a way to change the Syntax highlighting, regardless of the type of file it always highlights the same things (I think js, but I'm not famililar with that language).

So far I only tried it with Java and C for a couple of projects I'm working on and it does not highlight a lot of the stuff that gets highlighted normally with other editors.
Is there a way to fix it or are these two languages not supported for syntax highlighting.

I would suggest an option to change highlighting not dependent on the file extension.

@marc2332
Copy link
Member

marc2332 commented Sep 8, 2022

Can you show me an example of how it looks with some language you have tried that doesn't look good?

@gian9959
Copy link
Author

gian9959 commented Sep 8, 2022

Screenshot 2022-09-08 150658
Screenshot 2022-09-08 150719
Screenshot 2022-09-08 151140
It's mostly stuff like:

  • not highlighting variable types or classes like int, void, String etc...
  • not highlighting functions in a different color than variables (look at the alarm_flag = 0 example). In my opinion variable names should just be white, letting the yellow text be functions.
  • preprocessor statements in C are just white, which is ok. But other editors highlight the first #keyword in a different color to make them more clear.

Screenshot 2022-09-08 151828

As a Bonus: it would be nice to also have the Latex Syntax highlighted. It's not strictly necessary IMO but it would be very useful for not having to use adifferent editors to edit those files.

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