Hi, I has the same problem that _alexia_...

The solution for my problem (File > Compile [always disabled when I close the
program and open it again]) to compile PHP files in PSPad was:

Settings > Highlighters Settings

On "HTML" choose the "Compiler" tab and set with this:

Compiler: C:\php5\php.exe (the location from your php.exe file)

Parameters: -l "%File%"

Check "Capture Program Output Window" and "Hide Output Window"

On LOG Parser:
*on line %L          ;PHP

Then Apply and OK

I notice this "solution" when open a file with php extension but with html (or
xhtml) code before php code. (then I notice that it happens independantly of
position of html or php code), so I try to compile but PSPad tells me that I
don't have a general compiler set.

I think that PSPad try to identify and choose a compiler to use by file content
not for the file extension.

-- 
<http://forum.pspad.com/read.php?2,45082,48564>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem