syntax coloring and code completion for EditorTextField

Hi,

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.

0
3 comments

See the createFile() and createEditor() methods in the FileTemplateConfigurable class; they do exactly that.

https://upsource.jetbrains.com/ideac/file/HEAD/platform%2Flang-impl%2Fsrc%2Fcom%2Fintellij%2Fide%2FfileTemplates%2Fimpl%2FFileTemplateConfigurable.java

0
Avatar
Permanently deleted user

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..

0

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

0

Please sign in to leave a comment.