How to syntax highlight nested text with Prism in this language? #3754
Unanswered
lancejpollard
asked this question in
Q&A
Replies: 0 comments
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.
-
I have a CodeSandbox here. If you'll see the preview, notice the "example" line:
How do I make it so the text is highlighted properly, so it handles "terms" nested inside strings, nested inside terms, etc., recursively? More like this:
How can I change the definition of the syntax highlighter above to allow nested strings within terms? Terms are as defined in the highlighter, and they can be nested with parens, like
term-a(term-b, term-c(term-d, etc))
. But you can have strings within terms, and terms within strings.Beta Was this translation helpful? Give feedback.
All reactions