Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change syntax highlighting to be close to the default 4D editor colors #358

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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