Open NamelessAshone opened 4 years ago
Thanks for suggestion. It's a little hard but we would consider this.
Do you mean a new feature which is similar to this? https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages
Thanks for the reply :D
Simply use a file to specify the color of one token which is identified by regexp. This file contains pattern/color_code pairs. Like this
/regexp parttern/ <color code>|<named color>
/\[error.*/ #FF0000
/\[notice.*/ info
/\[info.*/ info
/\[[a-zA-Z 0-9:]+\]/ #00FF00
By the way, Monaco Editor is too powerful.
It would be nice to add support for user defined sytanx highlighting.