react-textarea-code-editor icon indicating copy to clipboard operation
react-textarea-code-editor copied to clipboard

Custom Syntax Highlighting

Open emmajane1313 opened this issue 2 years ago • 1 comments

Is there a way to customise which specific words in the textarea are colored/highlighted based on a custom regex function or similar? I saw the issue regarding the prism plugins but am unclear on how to implement a custom function with these that is not language related.

For example being able to detect words that start with # and color them blue.

Thanks

emmajane1313 avatar Jan 09 '23 05:01 emmajane1313

@emmajane1313

https://github.com/uiwjs/react-textarea-code-editor/blob/8154d1b4e36ae1d7e09654aec2f2e5df58261ead/src/style/index.less#L3-L63

jaywcjlove avatar Jun 11 '23 09:06 jaywcjlove