Hello PSPad,

I'm just writing instructions about how to get PHPStan running with PSPad. It
generally works, although there is one point now making PSPad too inflexible, so
it works for a single project only.

Well, I added an External Application for PHP in the Highlighter Settings. It
points to a Windows batch File, which requires two variables:

- The path to the root of the current project open in PSPad
- The path of the file currently selected in PSPad

Unfortunately, the var "%ProjectDir%" holds the path of the PSPad project file
(.ppr) only, which is absolutely not of interest, because it could be anywhere
on the computer far away from the PHP files belonging to the project.

Is there a way to get the path of the project root itself? One can find this as
"DefaultDir=" in ppr. files.

For a feedback on this many thanks in advance.

Friendly greetings,
Ravelli

-- 
<https://forum.pspad.com/read.php?2,80026,80026>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem