MrSpock:
--------------------------------------------------------------------------------
Thank you for sharing this, JollyRoger. I don't want to belittle your
achievement in pointing out an alternative way to get similar results:
For most languages, especially for c-ish ones, it is easy to integrate an
external code beautifier with PSPad by setting it up as an external app in the
highlighter settings. Just specify something like
C:\Programme\AStyle\bin\AStyle.exe --style=ansi --indent=spaces=2
"%File%"
in the "Program" field.
Personally, I recommend AStyle (viz http://astyle.sourceforge.net/ ). The
only drawback I have found so far is that there must be one empty line at the
end of the file, otherwise an extra bracket will be added.

Forgot to mention: May I suggest that you upload the script to the
extensions section (viz http://www.pspad.com/de/pspad-extensions.php ) of
this site?
--------------------------------------------------------------------------------


indeed it worked :) THX !!!

something worth mentionning though :

cite:
--------------------------------------------------------------------------------
How to: "Open Active File in External Program". Took me forever to find this.
The icon Button should have a pull down triangle to the right of icon.

Every highlighter has space to set 5 external programs and one compiler. You can
run it With hotkeys (F9 ...), from menu File / Open Special / Open With or from
menu File / Compile. You can also show Control Toolbar (Menu View / Toolbars) or
Right Click on Toolbar you have buttons on toolbar to run it.
--------------------------------------------------------------------------------

source = http://www.pspad.com/en/faq.htm


hit F9 to actually do the reindent

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

Odpovedet emailem