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 support in <code> #110

Closed
pickfire opened this issue Mar 17, 2016 · 4 comments
Closed

Syntax highlighting support in <code> #110

pickfire opened this issue Mar 17, 2016 · 4 comments

Comments

@pickfire
Copy link

Hi, I would like to know if there is any way I can add syntax hightlighting in <code> block.

@jgm
Copy link
Member

jgm commented Mar 17, 2016

You might check out jgm/lcmark. It has a sample filter for
doing highlighting (in the examples directory).

+++ Ivan Tham [Mar 17 16 10:47 ]:

Hi, I would like to know if there is any way I can add syntax
hightlighting in block.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or [1]view it on GitHub

References

  1. Syntax highlighting support in <code> #110

@pickfire
Copy link
Author

Ah, looks nice, I didn't know about that. But it might be slower than cmark as it is not written in C.

Thanks a lot.

@jgm
Copy link
Member

jgm commented Mar 18, 2016

+++ Ivan Tham [Mar 17 16 22:35 ]:

Ah, looks nice, I didn't know about that. But it might be slower than
cmark as it is not written in C.

lcmark is a wrapper over libcmark, so it's really pretty
fast, nearly as fast as cmark! The only slow part is the
highlighting which shells out to a python program.

@pickfire
Copy link
Author

Oh, now I really hope that there is a highlight program in C.

CyberShadow pushed a commit to CyberShadow/cmark that referenced this issue Apr 1, 2021
* test

* fix: do not percent-encode ~
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

2 participants