-
Currently term.select() can only highlight one keyword, hope to add search keywords, such as ABA, select("A") -> two A highlighting |
Beta Was this translation helpful? Give feedback.
Answered by
Tyriar
Mar 27, 2023
Replies: 1 comment 1 reply
-
The search addon does this already. You can check out the source of the addon for how to use decorations to do special highlighting like this: https://github.com/xtermjs/xterm.js/blob/master/addons/xterm-addon-search/src/SearchAddon.ts |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tyriar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The search addon does this already. You can check out the source of the addon for how to use decorations to do special highlighting like this: https://github.com/xtermjs/xterm.js/blob/master/addons/xterm-addon-search/src/SearchAddon.ts