Adding new language for code highlighting #2176
Unanswered
jeepers3327
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Prism adds itself globally (into window), so you should be able to import any prism language definition and it'll be available to lexical. E.g. if you want to add Lua support:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at
@lexical/code
package, it has fixed sets of prismjs highlight styles.Is there a way to add or extend the package to add additional prismjs package to support other programming languages?
Beta Was this translation helpful? Give feedback.
All reactions