dialogic-godot / documentation

📖 The documentation for the Dialogic Godot plugin.
http://docs.dialogic.pro
16 stars 12 forks source link

Add GDScript Syntax Highlighting #25

Closed CakeVR closed 8 months ago

CakeVR commented 8 months ago

This PR replaces the highlight.js with GDScript only. It misses some certain built-in types, they may get supplied later.

The three CSS files handling the light theme and dark themes are slightly adjusted. On top, the ayu Theme will attempt to be close to Godot's own syntax highlighting. Right now, it's approximately what the official Godot documentation uses, not the built-in editor.

The highlight.js mostly copies the one in the mdBook repository, minus the support of the other languages. Since it contains the hljs function, the file is licensed under BSD-3-Clause. This mirrors mdBook's approach.

I added an extra category for Dialogic special words (keywords) as well, such as the Autoload: Dialogic