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

Add ABNF syntax highlighting #1344

Open
camelid opened this issue Sep 29, 2020 · 3 comments
Open

Add ABNF syntax highlighting #1344

camelid opened this issue Sep 29, 2020 · 3 comments
Labels
A-Highlighting Area: Code colored syntax highlighting

Comments

@camelid
Copy link
Member

camelid commented Sep 29, 2020

It doesn't seem to work with the current version of mdBook, but it's supported in Highlight.js. It would be nice to have for language specs.

@camelid
Copy link
Member Author

camelid commented Sep 29, 2020

Also, is it documented what highlight languages are supported? I couldn't find that in the mdBook guide.

@camelid
Copy link
Member Author

camelid commented Sep 29, 2020

Also, is it documented what highlight languages are supported? I couldn't find that in the mdBook guide.

Opened #1345.

@camelid
Copy link
Member Author

camelid commented Sep 29, 2020

(ABNF stands for "Augmented Backus–Naur form")

@ehuss ehuss added the A-Highlighting Area: Code colored syntax highlighting label Jul 27, 2021
ehuss added a commit to ehuss/mdBook that referenced this issue May 13, 2023
This updates highlight.js to 10.7.3, which picks up various syntax highlighting fixes.
This is keeping on the 10.x release due to rust-lang#1622.

I have also added a few requested languages: abnf

Note that there is a new deprecation in this release. I haven't updated the javascript code to avoid breaking any projects which just override highlight.js in their theme. Unfortunately this will result in a deprecation warning in the console, which can't easily be turned off.

Closes rust-lang#1344
Closes rust-lang#1674
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Highlighting Area: Code colored syntax highlighting
Projects
None yet
Development

No branches or pull requests

2 participants