Syntax Files, RegExp for SyntaxEnd Character Strings
Posted: Wed May 15, 2002 9:02 pm
I was just wondering if using Regular Expressions for SyntaxEnd character strings is possible or if there are any plans for this capability.
For example this would be very usful when editing web documents like PHP, JSP or ASP and you want syntax highlighting for both HTML and the code. The current problem comes when using the '>' character as the SyntaxEnd character. It works for most HTML and PHP syntax except for class objects like
$foo->bar();
It would be nice to say that '>' is the syntax end character but not '->' using a reg expression like [^-]>
Thanks,
Chris
For example this would be very usful when editing web documents like PHP, JSP or ASP and you want syntax highlighting for both HTML and the code. The current problem comes when using the '>' character as the SyntaxEnd character. It works for most HTML and PHP syntax except for class objects like
$foo->bar();
It would be nice to say that '>' is the syntax end character but not '->' using a reg expression like [^-]>
Thanks,
Chris