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

[Enhancement]: Add syntax highlighting to code blocks in markdown #490

Open
1 task done
CodeDoctorDE opened this issue Sep 2, 2023 · 1 comment
Open
1 task done
Assignees
Labels
enhancement Small enhancements to existing features

Comments

@CodeDoctorDE
Copy link
Member

Which feature is your request related to?

2.0 Nightly Version

Describe your request for enhancements!

Currently the code block is just monospace text.
Add syntax highlighting to it.

Additional context

How should we add codeblock styles?
If you want to have Github Dark, Dracula or more, how should we add it?
The current styles doesn't allow you to use the material style and additionally use a different style for code blocks. How should we add it?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@CodeDoctorDE CodeDoctorDE added the enhancement Small enhancements to existing features label Sep 2, 2023
@CodeDoctorDE CodeDoctorDE self-assigned this Sep 2, 2023
@CodeDoctorDE
Copy link
Member Author

We can use https://lib.rs/crates/synoptic for parsing.
Then we can just use the classes code-comment, code-boolean, ...

Maybe we should make something like substyles to enhance the current Material Theme with code styles like Github Dark, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small enhancements to existing features
Projects
Status: 📕 Todo
Development

No branches or pull requests

1 participant