PHP syntax - comments

Discuss syntax highlighting or submit new syntax files.
Post Reply
epement
Posts: 9
Joined: 05 Aug 2006 18:02

PHP syntax - comments

Post 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?
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Post 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.
Post Reply