Skip to content
\n

You should see this:

\n

\"image\"

\n

Now go here:

\n

https://stackblitz.com/edit/vitejs-vite-anepnm?file=src%2Fmain.ts

\n

Notice the regex doesn't look exactly the same:

\n

\"image\"

\n

Looks like it's missing some anchor tags that only exist on the demo page:

\n

\"image\"

","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.

","upvoteCount":0,"url":"https://github.com/jonpyt/prism-code-editor/discussions/15#discussioncomment-9427024"}}}
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonpyt
Comment options

Answer selected by thdoan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants