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

Syntax highlighting #246

Open
AntonioNoack opened this issue Jun 9, 2023 · 0 comments
Open

Syntax highlighting #246

AntonioNoack opened this issue Jun 9, 2023 · 0 comments

Comments

@AntonioNoack
Copy link

Description

Only very few people are coding without syntax highlighting, and imo it greatly improves readability.
I'd suggest that the example code on your website gets syntax highlighting.

Current state:
image

Good

I'm coming from the Kotlin world, so I'd like colors like these:
image

Features: keywords (orange), declared function names (yellow), struct members (lavender), strings (green), comments (slightly different green) and numbers (light blue) have different colors.

For libraries, popular ones like highlight.js or prism.js should work fine.

Bad

Please don't use the colors that Zig uses. I think that keywords shouldn't be more prominent than regular text, because they contain similar or less information than function calls and expressions. Zig somehow decided that bold and bright is appropriate for them 🤦‍♂️. Also the text in Zig's preview has not enough contrast to the background in my opinion.
image

Contribution?

I may be able to implement that, but I'll have to see how your project is structured, and how to integrate new JavaScript libraries first.

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

No branches or pull requests

1 participant