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

[Feature Request]Simple code syntax highlighting #35

Open
2 tasks
IcyFeather233 opened this issue Mar 27, 2024 · 2 comments
Open
2 tasks

[Feature Request]Simple code syntax highlighting #35

IcyFeather233 opened this issue Mar 27, 2024 · 2 comments

Comments

@IcyFeather233
Copy link

Describe the feature

Simple code syntax highlighting, just as most of technical blogs.

Use Case

Currently, all code blocks are in black and white. As a minimalist blog, it seems necessary to have a simple syntax highlighting setting. I hope it can be made into an option, so that those who need it can enable syntax highlighting, while those who don't need it can continue to keep their code blocks in black and white.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

Any

Environment details (OS name and version, etc.)

Any

@FernandoCelmer
Copy link
Owner

@IcyFeather233 Cool, this feature is really good. I started a brief analysis to implement this improvement, if you want to help you can also open a pull request. I will use a library called highlightjs.

@saulmmendoza
Copy link

Hi @FernandoCelmer the highlight isn't working properly, I think it should call hljs.highlightAll() instead of hljs.initHighlightingOnLoad() according to the highlightjs README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants