Search code examples
tokenace-editor

How to build our own tokens in acejs editor


In acejs editor, we have a lot of build-in tokens, like string, command, and keyword. We can give different color and event handler according to tokens. Here, I wonder it's possible to create our own customer tokens.


Solution

  • Ace doesn't give any special meaning to tokens any string can be a token.