Page 1 of 1

PHP syntax - comments

Posted: 25 Mar 2008 00:23
by epement
The PHP syntax highlighter does not recognize both kinds of comments. For example,

Code: Select all

// This is treated as a comment
# But this is not treated as a comment.
# However, it should be!
Is it possible to get the hash mark (#) added to the PHP syntax table?

Posted: 25 Mar 2008 10:47
by Rickard Johansson
Of course. Open the file php.syx and add the line

LineCommentB=#

right under the "LineCommentA=//" line. I'll make the change in the next release.

Thanks.