At least the underlying parsing should already be correct, we use highlight.js with a GDScript plugin. We should probably look for a different color scheme though. Currently some keywords are only boldened which makes them look like the rest of the code.
Note that highlight.js wasn’t updated for Godot 4.0’s GDScript syntax to my knowledge, so it has no awareness of annotations and new/removed keywords.
I suppose it should be updated upstream in a manner that keeps it compatible with GDScript from Godot 3.x and 4.x at the same time (likely by keeping the removed keywords in the list of valid keywords).
Yes, but we can update it. It’s still less hassle than integrating a completely different highlighter since it is really tightly integrated into Discourse