Getting standalone textarea to work with syntax highlighting, code completion, etc.
Submitted by Sunday, 22 November, 2009 - 21:22
on
I have run build.xml to generate standalone-textarea and despite tweaks (BufferUndoListener?) needed in build got past this.
I can successfully show a textarea with my content inside however there is no java syntax highlighting, backspace/del/arrow keys don't work, etc. All text is black and white.
I am instantiating the textarea with supplied 'jedit.props' file and changed default mode from text to java in 'jedit.props'. I have confirmed that modes directory (with text.xml/java.xml) is a part of my textarea jar produced by build as is the modified jedit.props file.
Any ideas how I can actually use this standalone widget as intended? I need syntax highlighting and code completion. I was hoping to pass in classpath urls as needed for code completion part.
I am seeing nothing in APIs (at least from textarea) which would allow me to do any of the above.
Help w/be nice right about now...
thanks in advance,
mike
I can successfully show a textarea with my content inside however there is no java syntax highlighting, backspace/del/arrow keys don't work, etc. All text is black and white.
I am instantiating the textarea with supplied 'jedit.props' file and changed default mode from text to java in 'jedit.props'. I have confirmed that modes directory (with text.xml/java.xml) is a part of my textarea jar produced by build as is the modified jedit.props file.
Any ideas how I can actually use this standalone widget as intended? I need syntax highlighting and code completion. I was hoping to pass in classpath urls as needed for code completion part.
I am seeing nothing in APIs (at least from textarea) which would allow me to do any of the above.
Help w/be nice right about now...
thanks in advance,
mike