-
Name Previous Value Current Value Assignee
robin
cwh
-
-
Implemented syntax highlighting for Godot source files:
.gdnow uses Python mode and.gdshaderuses CodeMirror's GLSL shader mode. Verified withmvn -Pce -pl server-core -am -DskipTests compile(BUILD SUCCESS).Submitted as pr #99.
| Type |
Improvement
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
Hi!
When browsing or reviewing Godot project files (.gd and .gdshader) in OneDev, they currently render as plain text without syntax highlighting. It would be an awesome quality-of-life improvement if we could get support for Godot files!
If it helps, GDQuest maintains a Lezer parser specifically for CodeMirror here: https://github.com/GDQuest/gdscript-lezer-grammar
Alternatively, even just mapping .gd files to the standard Python syntax highlighter as a fallback would work pretty well as a quick fix, since the two languages share a very similar structure, and .gdshader to C, C++, or GLSL highlighters works great as a fallback given its C-like shader syntax.
Thanks for all your hard work on OneDev!