You should see this:
\n\nNow go here:
\nhttps://stackblitz.com/edit/vitejs-vite-anepnm?file=src%2Fmain.ts
\nNotice the regex doesn't look exactly the same:
\n\nLooks like it's missing some anchor tags that only exist on the demo page:
\n","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Highlighting of regular expressions and JSDoc is done by optional dependencies. You need to import prism-code-editor/prism/languages/regex and prism-code-editor/prism/languages/jsdoc to enable these features.
-
|
I just noticed the syntax highlighting on the demo page is different from v3.3.1 that I'm using. Steps to reproduce:
You should see this: Now go here: https://stackblitz.com/edit/vitejs-vite-anepnm?file=src%2Fmain.ts Notice the regex doesn't look exactly the same: Looks like it's missing some anchor tags that only exist on the demo page: |
Beta Was this translation helpful? Give feedback.
-
|
JSDoc highlighting is also different... |
Beta Was this translation helpful? Give feedback.
Highlighting of regular expressions and JSDoc is done by optional dependencies. You need to import
prism-code-editor/prism/languages/regexandprism-code-editor/prism/languages/jsdocto enable these features.