2012-04-21, 05:59 PM
I'm working on a MyCode for VB.NET syntax highlighting and I can't seem to just get the basics down. This is my current regular expression:
This is my current HTML:
That outputs:
[vb]'test "test"[/vb] 'test "test"[/vb]
I tried changing the HTML:
That outputs:
'test "test"[/vb]
...and so on.
I can't seem to figure out what I'm doing wrong. Any help would be appreciated, thanks a lot!
\[vb\](\'.*$)|("[^"\r\n]*")\[/vb\]
This is my current HTML:
<span style="color: blue;">$0</span>
<span style="color: red;">$1</span>
That outputs:
[vb]'test "test"[/vb] 'test "test"[/vb]
I tried changing the HTML:
<span style="color: blue;">$1</span>
<span style="color: red;">$2</span>
That outputs:
'test "test"[/vb]
...and so on.
I can't seem to figure out what I'm doing wrong. Any help would be appreciated, thanks a lot!