Change syntax highlighting to be close to the default 4D editor colors #358
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The code examples on the documentation website looks nothing like the code written in the 4D editor (in terms of syntax highlighting). After creating themes for my companies docusaurus project to make the syntax highlighting look closer to the default 4D editor, I thought it could also be useful for the 4D documentation website.
Downside is that this implementation also effects code of other languages (but are there even code snippets of other languages here?).
Upside is that all code is better recognizable for people that use the default theme in the 4D editor.
light mode:
dark mode: