Skip to content

Conversation

@rockycodemaker
Copy link

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:
Screenshot 2024-09-02 145740

dark mode:
Screenshot 2024-09-02 145801

#DECLARE, ds and Form were not recognized properly, so I gave them their own class for proper recognition.
A 'memberFunction' should not be similarly highlighted as a function, so I removed the alias.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants