Hi, I’m wondering if it’s possible to add text formatting to a TextArea. If you look at the attached picture, you’ll see my textArea, filled with XML text. it’s not really XML, just a string that is formatted like XML. anyway. I would love to be able to have some sort of highlighting, even if it’s just the words in the <>'s. I have only 6 tags:
<scheme>
<name>
<description>
<module>
<moduleName>
<param>
Is it possible to set this up? Right now I’m just thinking that I’d need a parser that looks for every string starting with < and ending with " " (space). highlight the text between said indices. also whenever you hit “name=” and also “value=”, and finally "/>. but is that possible? can you have individual bits of a long string have different textFormats or StyleSheets?
I’m very curious, and this project is ready for release:
http://matkat.tringali.org/misc/VisualFUN/Visualizer/Visualizer.html
To see my XML thing in action, change some parameters on any module. then go to the UTIL tab, and hit the Refresh Button. it’s the topmost button on that page. it’ll show you which modules you changed.