I have a Syntax highlighting problem, when I'm editing my PHP-files with JavaScript in them.
First of all, this is the first line of my wordfile for PHP:
As you can tell, I have enabled MLS (Multi Line String?) which is the problem. I think it's a really nice feature, but it's not working properly. To illustrate the problem, I have the following screenshots:
At the last screenshot, the syntax hightlighting completely goes wrong. This is when the "<script>"-line is started on a seperate line.
As far as I can tell, it's not my wordfile that's the problem but seems to be a bug in UE?
Or does UE see the "<script>"-line and switches to JavaScript-highlighting, but doesn't switch back somehow?
Does anyone else have the same problem? Or do you have any suggestions on how to fix it?
First of all, this is the first line of my wordfile for PHP:
Code: Select all
/L20"PHP5" Nocase PHP_LANG EnableMLS Line Comment = // Line Comment Alt = # Block Comment On = /* Block Comment Off = */ Block Comment On Alt = <!-- Block Comment Off Alt = --> Escape Char = \ String Chars = "' File Extensions = PHP PHTML INC PHP3 PHP4 PHP5
At the last screenshot, the syntax hightlighting completely goes wrong. This is when the "<script>"-line is started on a seperate line.
As far as I can tell, it's not my wordfile that's the problem but seems to be a bug in UE?
Or does UE see the "<script>"-line and switches to JavaScript-highlighting, but doesn't switch back somehow?
Does anyone else have the same problem? Or do you have any suggestions on how to fix it?