RSyntaxTextArea
RSyntaxTextArea copied to clipboard
Support for Syntax Highlighting for XML Namespaces
Very impressed with RSyntaxArea so far. Thanks for this project.
I'd be curious if there's any interest in adding support for syntax highlighting of XML namespaces. The idea here is given the string:
'<h:body>'
The angle brackets, the 'h', the ':', and the 'body' would all have different colors. This makes editing complex XML documents that leverage many different namespaces easier to read and write. (If we really want to get fancy we could color different namespaces different colors. But I don't think the token scanning architecture allows for this level of customization.)
Is there any interest in this? Looking at the class XMLTokenMaker the javadoc indicates it was created with JFlex. Not sure what it's generated from but I wonder if the specification could be modified to distinguish an 'in-tag-namespace', 'in-tag-colon' and an 'in-tag-localname' states.
This should be very straightforward, thanks for the request.