-
Notifications
You must be signed in to change notification settings - Fork 164
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
Font-locking code blocks #185
Comments
I've actually come looking for exactly this feature. This is extremly simple to implement, I've done it for sphinx: https://github.com/Fuco1/sphinx-mode/blob/master/sphinx-src.el The code could be copied 1:1 or extracted as an extra dependency. |
Thanks for the pointer @Fuco1! I have something working and hope to push it soon... |
This is in the |
I closed this accidentally, but I'll leave it that way for now. Let me know if you have any other comments or if anything doesn't work right. |
Update: With 740bd6a, native fontification works for tilde-fenced code blocks too. |
Expected behavior
There should be a way to font-lock code blocks for supported languages, similar to Orgmode's
org-src-font-lock-fontify-block
.This may be particular to
gfm-mode
.Actual behavior
There is no such feature.
Steps to reproduce (recipe)
N/A
Backtraces if some (M-x toggle-debug-on-error)
N/A
Versions of
markdown-mode
, Emacs, OS, etc.markdown-mode
:2.1
25.1.50.1
Darwin C02RW05YFVH6 15.6.0
The text was updated successfully, but these errors were encountered: