Graviton-App icon indicating copy to clipboard operation
Graviton-App copied to clipboard

[Issue] How to change Syntax highlighting

Open gian9959 opened this issue 2 years ago • 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.

gian9959 avatar Sep 08 '22 12:09 gian9959

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

marc2332 avatar Sep 08 '22 13:09 marc2332

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.

gian9959 avatar Sep 08 '22 13:09 gian9959