Is it possible to highlight code blocks via code comments? #7293
Unanswered
heitorlessa
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hello @heitorlessa, You need to use a hook to patch the internals of the highlight logic. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Perhaps it is possible, but we're using specific lines to highlight a given code block. While this served us well, we're now past 500+ code snippets and any refactoring / formatting means we're manually going to each code snippet to correct the line numbers to highlight.
Recent example: we're looking to add
from __future__ import annotations
, but this will shift line numbers breaking the highlight.Idea: something like code annotation but to highlight. Perhaps it's possible with SuperFences but unsure where to begin.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions