Graviton-Code-Editor/Graviton-App

[Issue] How to change Syntax highlighting

Opened this issue · 2 comments

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.

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

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.