Menu

Possible Bug for Syntax highlighting

2008-03-13
2012-11-13
  • Nobody/Anonymous

    I am a Java programmer and user of Notepad++ for some time. Now I was reviewing a PHP code and something caught my attention.

    $rval = `mv /usr/local/apache/htdocs/cms/testfile/* /usr/local/apache/htdocs/cms/final`;

    Here the presence of /* was detected as starting of multi line comment. I am not a PHP programmer but others told me that code is correct and the syntax highlighting is flawed. In other editors (like homesite) the syntax highlighting works correct. Is it a bug in Notepad++ or a wrong code? Is something need to be escaped with \ ?

     
    • Nobody/Anonymous

      Use ' instead of `.

       
    • Ashish Patil

      Ashish Patil - 2008-03-13

      Sorry, forgot to login while posting last post.

       
    • Ashish Patil

      Ashish Patil - 2008-03-13

      I think ` is used to run system command? So replacing it by ' means making it string, which I don't want. The code looks correct to me.