(For some reason, the XML examples I pasted did not come thru - maybe they are hidden by the HTML page?)
I am trying to syntax color program labels, which for me are simply any alphanumeric followed by a '''':'''' character.
The XML description that I wrote does not match the text properly:
<\pre>
The problem appears to be the colon character. Simplifying the definition to try to just match "foo:" does not work.
<\pre>
But, matching just a colon character does work.
<\pre>
Is there something I am doing wrong?
In addition, the regular expressions do not appear to handle beginning-of-line (^) correctly. For example "^foo" will match "foo" anywhere in the line. Is there a workaround for this?
Best regards,
Ed