[Highlight] Applying additional pygments highlighters #2607
-
Was wondering if there are any additional steps required for adding additional syntax highlighters in pygments, or if it just requires installing the highlighter via I ask, because I did exactly that. I've installed the lexer in question and applied the identifier to the code block, yet it doesn't apply the proper highlighting to the block, making me wonder if there are any additional steps required. I use pymdownx.highlight as an extension for MkDocs (with Material for MkDocs theme), if that is of any importance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
This project uses custom highlighters, well only one, but it's from here: https://github.com/facelessuser/pymdown-lexers. See results here https://facelessuser.github.io/pymdown-extensions/extensions/critic/. There is no additional setup, see MkDocs config: https://github.com/facelessuser/pymdown-extensions/blob/main/mkdocs.yml. |
Beta Was this translation helpful? Give feedback.
This project uses custom highlighters, well only one, but it's from here: https://github.com/facelessuser/pymdown-lexers. See results here https://facelessuser.github.io/pymdown-extensions/extensions/critic/.
There is no additional setup, see MkDocs config: https://github.com/facelessuser/pymdown-extensions/blob/main/mkdocs.yml.