Posted by: pspad | Date: 2014-09-14 08:37 | IP: IP Logged
This archive contains modified files only. The correct way how to get full functionality:
1. Download and install latest full version
2. Replace existing files with content of archive
Tip: If you want to speed up start and you don't use FTPS connection, delete files libssl32.dll and libeay32.dll in the root of PSPad.
Changes to 4.5.8 (2501)
New PHP beautifier (http://www.waterproof.fr/products/phpCodeBeautifier/)
Code explorer - possibility Switch off refresh with File save in Program settings / Tools
HTML highlighter - fixed curly brackets highlighting in text with switched off template support
Posted by: Andreas | Date: 2014-09-15 07:45 | IP: IP Logged
New PHP beautifier did not work for me. No action at all on PHP files with PHP syntax highlighting. Did I miss something?
Posted by: pspad | Date: 2014-09-15 08:13 | IP: IP Logged
Look at page:
There is explanation of switches and code modifying.
How is works:
1. PHP file must exists on disk, cause external tool needs file as parameter
2. File is sent to phpcb.exe with selected options as parameter and output is catched (similar way as compiler output)
3. current editor content window is replaced with catched output (with UNDO possibility)
Posted by: Andreas | Date: 2014-09-15 08:42 | IP: IP Logged
Win 7 64
PHP file to beautify is on disk and open in PSPad.
Unchanged PhpCBCFG.ini is in my PSPad folder root.
phpCB.exe is in my PSPad folder root.
Do I have to make some settings in my PHP highlighter on tab "External applications" or "Compiler"?
Posted by: pspad | Date: 2014-09-15 09:04 | IP: IP Logged
No there isn't necessary to do any changes in settings.
The problem is described functionality to redirect output into file using ">" doesn't work so I need to use catch output.
Try to tun PHPCB.exe with some options on any your PHP file manually in DOS window
Edited 1 time(s). Last edit at 2014-09-15 09:05 by pspad.
Posted by: Andreas | Date: 2014-09-15 10:31 | IP: IP Logged
Yes, it works nice on command line
C:\Portable\PortableApps\PSPadPortable>phpCB.exe test.php > test_new.php
Posted by: pspad | Date: 2014-09-15 10:44 | IP: IP Logged
I will try to find a reason. It works ok for me. I will try some workaround with generated BAT file
Posted by: pspad | Date: 2014-09-15 13:19 | IP: IP Logged
Can you please test this build:
Replace current exe with exe from ZIP.
I changed mechanism to:
CMD file with temp name is generated to folder with original file with command to call PHPCB.exe
Output of Phpcb is redirected to file with temp name in same folder
Output from PhpCB is open in PSPad as new tab
temp batch and temp file are deleted
Can you confirm it works please?
Posted by: hhoefling | Date: 2014-09-15 14:06 | IP: IP Logged
Only an idee...
Under Windows 7/8
the programm excecution can be forbidden in Data folder.
Then the Batch File must be in an other location.
Posted by: Andreas | Date: 2014-09-15 14:27 | IP: IP Logged
OK here my results:
Before you sent me 2504 I tried to put
into my windows environment variable "path". This works (don't need to restart my windows).
But: Content of PHP file gets doubled
// my code
// my code
Second one is the original.
And: Cursor shows busy cursor when hover over toolbar menu icons until you click into editor text again.
And: There are some errors with indentations (wrong indentations)
I removed my path variable and tried 2504. It works.
But: Same double content and indentation bug.
And: Content ist shown in a new file where you have to watch out to not again use the PHP beautifier else PSPad hangs and has to be closed with the task manager.
ps I'm working with phpStylist in PSPad and this works much better - realy nice code formating like expected.