'Problem' with PHP

Discuss syntax highlighting or submit new syntax files.
Post Reply
User avatar
rjbill
Posts: 879
Joined: 13 Jun 2011 06:36

'Problem' with PHP

Post by rjbill »

I don't know if this is the correct location to report/request this.

If there is whitespace (a SPACE character) between a PHP FUNCTION name and the opening parenthesis,
the function names do not show their coloring.

This works in JavaScript, though.

For those of us who like to use whitespace for readability, it would be nice if it worked in PHP, too.
RJTE version 16.16 (actual) - 64-bit
Win 10 Pro 64-bit 8 GB RAM Intel Core i7-6700 3.40 GHz SCSI Hard Drive 1 TB

Note: The signature is dynamic, not static,
so it may not show the correct version above
that was in use at the time of the post.
User avatar
Rickard Johansson
Site Admin
Posts: 6630
Joined: 19 Jul 2006 14:29

Re: 'Problem' with PHP

Post by Rickard Johansson »

I've updated the PHP syntax file (PHP.syx) in v16.16 (final release).

If you want, you can make the change yourself. In PHP.syx change the #Methods=... to

Code: Select all

#Methods=[\w-_]+(?=[\s(])
User avatar
rjbill
Posts: 879
Joined: 13 Jun 2011 06:36

Re: 'Problem' with PHP

Post by rjbill »

Thanks.
RJTE version 16.16 (actual) - 64-bit
Win 10 Pro 64-bit 8 GB RAM Intel Core i7-6700 3.40 GHz SCSI Hard Drive 1 TB

Note: The signature is dynamic, not static,
so it may not show the correct version above
that was in use at the time of the post.
Post Reply