syntax coloring and code completion for EditorTextField


I have a plugin, whose setting page has an EditorTextField. I will be writing some templates here, which my plugin (my menu), will use.
The template will be written in velocity. I need to get syntax coloring and code completion for this field.
Please let me know how i can get this going.  

Thank you.

Comment actions Permalink

Hi ,

I tried using the code you mentioned. In the createEditor method, there is a line editorSettings.setCaretRowShown(false);. Looks like method setCaretRowShown, is not available in Intellij 12.0.1.
For what version of intellij can i use/refer the code suggested..

Comment actions Permalink

You can simply remove this call; it is not essential for the feature to work.


Please sign in to leave a comment.