Skip to main content

Documentation Codeblock Guide

· 2 min read
Hamid.Memar
Jenova Framework Founder

ArticleBanner

Jenova C++ Syntax Highlighter

For the ease of learning and better learning curve, I implemented an advanced syntax highlighter for Jenova C++ scripts. The syntax highlighting used for Jenova is not only an improved C++ highlighter but also highlights all the Godot and Jenova classes, enums and macros differently.

Each color defines a certain and very specific type in the ecosystem. In this article, you will learn about the Jenova C++ code blocks in detail.

Highlighting of Generic C++

‣ Strings : A string is a sequence of characters used to manage text in a program.
‣ Macro Names : Macros defined by the user or system, used for code substitution.
‣ Keywords : Reserved words in C++ like if, while, class that have special meaning.
‣ Directives : Preprocessor instructions like #include or #define.
‣ Generic Namespaces : Namespaces used to organize code and avoid naming conflicts.
‣ Namespace Members : Functions or variables declared inside a namespace.

Highlighting of Godot C++

‣ Enums : Godot-specific enumerations used to define constant sets.
‣ Enum Values : Individual values inside a Godot enum.
‣ Utilities : Helper functions or tools provided by Godot.
‣ Types : Built-in Godot types like Vector2, Color, etc.
‣ Classes : Core Godot classes used in scripting and engine logic.
‣ Singletons : Globally accessible Godot classes like Input, OS, etc.
‣ Structures : Structured data types used in Godot.
‣ References : Reference-counted Godot objects.
‣ Macros : Godot-specific macros used in engine or script integration.

Highlighting of Jenova C++

‣ Enums : Jenova-defined enumerations for internal logic.
‣ Enum Values : Values inside Jenova enums.
‣ Classes : Jenova-specific classes used in scripting.
‣ Functions : Jenova-defined functions.
‣ Utilities : Helper tools and functions in Jenova.
‣ Types : Custom types defined in Jenova.
‣ Namespaces : Jenova-specific namespaces for modular code.
‣ Macros : Macros provided in Jenova Framework.

Attention

Syntax highlighting may change in future updates. Revisit this article periodically for the latest information.