Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: Dook on December 20, 2022, 03:40:45 PM

Title: Syntax Highlighting support for .wps, .sbs & .fms files.
Post by: Dook on December 20, 2022, 03:40:45 PM
 I've started work on creating a set of syntax highlighting rules for modern text editors, I've started basic but hope to introduce snippets and auto-complete for platforms like Visual Studio and Sublime-Text. As of now, there's only GTKSourceView support which is for gedit and Gnome Text Editor, but I'll be starting more soon. If there's any platforms you'd like this for as well, let me know and I can see what I can do  :)

 It's a little unconventional, but I built the syntax highlighting around making the files as easy to read as possible. Tags are split into general catagories based on what they do. Tags that preload content, like images, fonts and viewports are one category. Then the rest of tags are highlighted differently depending on wether they are being used as a conditional or not. You can see an example from the base theme below.

Github Repo: https://github.com/D0-0K/rockbox-syntax-highlighting/tree/1.0 (https://github.com/D0-0K/rockbox-syntax-highlighting/tree/1.0)

(https://github.com/D0-0K/rockbox-syntax-highlighting/blob/1.0/exampleimage.png)