Feature suggestion: Allow comments in JML
Opened this issue · 1 comments
Kcits970 commented
When I try to animate long sequences in juggling lab, I use the pattern editor(jml editor) a lot. I mark certain parts of the jml with comments like this.
Unfortunately, when I hit the compile button, the jml parser ignores all the comments, and the comments are not included in the text area after the compilation finishes.
Would it be possible to allow comments in jml, and furthermore, would it be possible to give them a special color in the editor?
For example:
jkboyce commented
This would be a good addition @Kcits970 . Thanks!
Implementation note javax.xml.parsers.SAXParser
does not pass comments through during parsing; it ignores them. This would entail implementing the org.xml.sax.ext.LexicalHandler interface. See this Stack Overflow post.