Skip to content

How to achieve color highlighting when the user enters certain characters, for example, when entering {{xx}}, the curly brackets and the content in the curly brackets are highlighted #5523

Closed Answered by nperez0111
yrang asked this question in Questions & Help
Discussion options

You must be logged in to vote

You would want to look at Input Rules https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
& you would wrap that content in a custom mark or something so you can identify that content as needing highlighting

Replies: 1 comment 1 reply

Comment options

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

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