You are here: PSPad forum > English discussion forum > PHP Syntax Highlighting Broken

PHP Syntax Highlighting Broken

#1 PHP Syntax Highlighting Broken

Posted by: Louie | Date: 2012-11-05 00:31 | IP: IP Logged

Dear All,
I have a PHP program file that all of a sudden has lost its syntax highlighting. If I open a new in memory blank php file and copy the contents of the "broken" PHP file into it, the syntax highlighting reappears. If I overwrite the "broken" PHP file with the new in memory copy, the syntax highlighting stays active, for the current PSPAD editing session.

However closing PSPAD down and reopening the project, the syntax highlighting disappears from that file on reopening.

Any ideas on how to fix?

Options: Reply | Quote | Up ^


#2 Re: PHP Syntax Highlighting Broken

Posted by: pspad | Date: 2012-11-05 06:10 | IP: IP Logged

I am afraid I don't understand.
When you open PHP file, there is no syntax highlighted? In this case is possible your file size exceeded limit for highlighting. Go to program settings / Direct edit button.
Find and change value of HLUpToSize e.g. to 1000000 (size in bytes)

In case your file is highlighted with another highlighter, there can be several reasons:
1. you changed highlighter and PSPad remember it. Change it back to PHP
2. file is highlighter with HTML multihighlighter
3. you assign PHP (or your file) extension to another highlighter. Look on statusbar for syntax name. Go to highlighter settings, choose highlighter from statusbar and remove extension on the second tab

Options: Reply | Quote | Up ^


#3 Re: PHP Syntax Highlighting Broken

Posted by: Louie | Date: 2012-11-05 22:46 | IP: IP Logged

Thanx,
That fixed the problemsmiling smiley

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR