I'm currently working on a new installation script of AHK syntax files for PSPad. The creation of the INI file for the highlighter is done. Next thing is to update the DEF file for autocomplete (Ctrl-j) and clips (Ctrl+Space).
I would like to have your input. I want to find out how different the individual configurations are, so that I can create a GUI that supports all options (or at least the most) for an installation.
Anyone who uses PSPad and is interested in this development, please drop a note, so I can send you test versions.
Please post an answer to the following questions if you do not use the defaults in PSPad:
1) What changes have you applied to the AHK.INI and AHK.DEF file of your PSPad?
2) What settings are you using for the AHK highlighter?
3) What color are you using for the AHK highlighter?
4) What settings are you using for external programs?
5) What settings are you using for compiler?
6) Do you have new ideas (inside the possibilities of PSPad)?
7) Do you have scripts that help working with PSPad?
I don't want to hide mine (and give an idea how to post the settings):
Answers:
1) Changes to INI and DEF file:
Heavy changes, will be available with the script I will provide
2) Settings for AHK highlighter (in Syntax/AutoHotKey.ini)
[Settings] Name=AutoHotkey HTMLGroup=0 FileType=*.ahk CommentString= CComment=1 BasComment=1 Preprocessors=1 IndentChar= UnIndentChar= TabWidth=0 DoubleQuote=1 KeyWordChars=_ CodeExplorer=ftUnknown
3) Colors for AHK highlighter (in PSPad.ini):
[AutoHotkey] Comment=00FF000000FFFFFF010 Identifier=1FFFFFFF00FFFFFF111 Key=1FFFFFFF00FFFFFF100 Key words 2=000080FF00FFFFFF100 Key words 3=0000008000FFFFFF100 Label=000000FF00FFFFFF000 Number=0080000000FFFFFF000 Preprocessor=0080800000FFFFFF010 Reserved Word=000000FF00FFFFFF100 Space=0080800000FFFFFF000 String=0000620000FFFFFF000 Symbol=1FFFFFFF00FFFFFF000
4) Settings for external programs (in PSPad.ini):
[AutoHotkey] Prog0=AutoHotkey,cmd.exe /c C:\Programme\AutoHotkey\AutoHotkey.exe /ErrorStdOut |%File%| > |%Dir%%Name%_run.log|ยง%Dir%%Name%_run.log Prog1=RunAHKScriptFromWithinPSPadWithLogFile,|%PSPath%RunAHKScriptFromWithinPSPadWithLogFile.exe| /log |%Dir%%Name%_run.log| /in |%File%|ยง%Dir%%Name%_run.log
5) Settings for compiler (in PSPad.ini):
[AutoHotkey] Compilator Help=C:\Programme\AutoHotkey\AutoHotkey.chm Compilator File=%PSPAth%RunToCompileAHKScriptFromWithinPSPadWithLogFile.exe Compilator Param=/log |%Dir%%Name%_compile.log| /in |%File%| /out |%Dir%%Name%.exe| /pass 123#321 Compilator File= Compilator Param= Compilator LOG=%Dir%%Name%_compile.log Compilator Run= Compilator Help= Compilator SaveAll=1 Compilator ParsLog= Compilator Capture=0 Compilator HideOutput=0 Compilator DefaultDir=%Dir%
6) Ideas (Inside the possibilities of PSPad):
- Change external program (Run) and Compiler, so that the log parser and start-dir is available for Run. Flip ShortCuts for Run (F9) and Compiler (Ctrl+F9) as well, so user doesn't recognize change
- Using wrappers (you see them in my settings for external program and compiler) to create log files with more information and perform automatic actions inside PSPad based on log info (e.g. jump to line).
- When Run hotkey (F9) is pressed in PSPad, Save hotkey (Ctrl+S) is send before hand, so that no temp file is created.
- Auto-Syntax-Tidy to support command line option, so that it can be called from within PSPad as external program (e.g. Shift+F9)
7) Scripts for PSPad:
- Installer (half done)
- Wrapper for Run and Compile (half done)
- Auto-Syntax-Tidy (not started yet)
- AutoSave on F9 (not started yet)
Please support this effort.