PHP/JavaScript in UE 11.10

PHP/JavaScript in UE 11.10

2
NewbieNewbie
2

    May 10, 2005#1

    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:

    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
    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?

      May 10, 2005#2

      Problem solved!

      Thanks to IDM Support - very nice and fast support to a great product :D

      If anyone is curious and/or have the same problem, then the solution is to edit the wordfile and add "EnableMLS" to the JavaScript section, e.g.:

      Code: Select all

      /L9"JavaScript" JSCRIPT_LANG Line Comment = // Block Comment On = /* Block Comment Off = */ EnableMLS File Extensions = JS
      Have fun out there :wink:

      6
      NewbieNewbie
      6

        Jun 24, 2005#3

        I've been struggling with this for a while. Thanks LaZeR for posting this topic with a very accurate and descriptive subject for easy locating.