That was a long time ago since i used RSyntaxTextArea the last time, about two years... at the moment i try to create a latex ide with java, so i need syntax highlighting and i remembered me to RSystanxTextArea. This is a great editor component and i want to use it again, but i don't know how create syntax highlighting to latex documents. I need custom highlighting to highlight some special characters, parts of the text document.
At the weekend i tried to implement a basic highlighting example with JFlex, but it doesn't worked. I think i should spend more time to JFlex ^^
What would be the preferred way to add syntax highlighting to RSyntaxTextArea? At the developers: How do you implement syntax highlighting to a new language? Maybe, could you give a basic example, with multi line highlighting with or without JFlex?
Greetz
Edit:
Just a moment later, i found the TokenMakerMaker tool, looks exactly to that what i need

-->
http://fifesoft.com/blog/?p=510Edit:
I tried the TokenMakerMaker. Looks nice and works perfect to highlight simple keywords.
I noticed, the { and } chars will be highlighted with border. Is it possible to add functionality to TMM to add more identifiers to highlight with border? Additionally, is it possible to set the color to the string inside the { }, e.g. inside \title{asdasd}? What about folding, e.g. between \begin{...} and \end{...}?