+ AHK syntax highlighting
+ code clips and auto-completion
for PSPad editor
This is Version 2.0
and will hopefully come with the AHK installer someday
Screenshot of version v2 of the main and options Window
Download AHK Sourcecode and templates Version 2
Changes since version 1:
- updated definition files to AHK 1.0.46.00
- removed AOT state of all msgbox windows, but set them as owndialog
- PSPad.INI isn't required to find PSPad path, since PSPad might not have run before.
- removed the option to remove the FuturUse parameter from the clips, since Chris removed them from the syntax files
- by default the compiler password is a 7-digit random number instead of a static "123#321". It is not stored to the ini file. To have a constant password, you'll have to set it each time you install the highlightning again.
- script starts with a very simple gui (defaults will be used, if options are not changed).
- a second gui with options can be opened. This option gui has tabs to structure the data
- up to 4 additinal external programs can be specified with hotkeys
- additional PSPad hotkeys can be individually activated
- added OutputDebug shortcut to def file: Alt+O
;# Useful shortcuts inside PSPad:
;#
;# (installed by this script for AHK:)
;# Crtl+< = add "%" around selected variable (see "PSPad hotkeys" in DEF file)
;# Crtl+Shift+< = add """ around selected variable (see "PSPad hotkeys" in DEF file)
;# Crtl+Shift+h = create hotstring from selected word (see "PSPad hotkeys" in DEF file)
;# Crtl+Shift+d = create hotkey from selected word (see "PSPad hotkeys" in DEF file)
;# Crtl+Shift+x = create subroutine from selected word (see "PSPad hotkeys" in DEF file)
;# Crtl+Shift+f = create function from selected word (see "PSPad hotkeys" in DEF file)
;# F9 = run script
;# Ctrl+F9 = compile script
;# Alt+F9 = start AHK ToolBar
;# Alt+F = search and replace in all files
;# Alt+G = search selected word with goggle
;# Alt+Y = swap with line above
;# Alt+X = swap with line below
;# Alt+V = copy line (create duplicate)
;# Ctrl+B = Split window vertically
;#
;# (common inside PSPad:)
;# Ctrl+Shift = insert clip
;# Ctrl+j = auto-complete word
;# Tab = indent selected lines
;# Shift+Tab = un-indent selected lines
;# Ctrl+Shift+a = comment/un-comment selected lines
;# Alt+(Left/Right/Up/Down) = work with bookmarks (set/remove/previous/next)
;# Ctrl+Shift+B = show a list of all bookmarks
;# Ctrl+Shift+(Up/Down) = select word and find previous/next word
;# Ctrl+Alt+(Left/Right) = left/right justify selected lines
;# Alt+LButton-Selection = column selection (it helps to activate "Scroll past EOL"/"Cursor nach Zeilenende erlauben")
;# RButton-Click on AHK command => choose "Help for Language"/"Sprachspezifische Hilfe" or ...
;# Alt+F1 = jump to command in AHK help file
;# F12 = save as...
;# Ctrl+Shift+S = save all open files
;# Ctrl+M = jump to corresponding bracket
;# Ctrl+Shift+M = select text between corresponding bracket
;# This script contains
;# - GUI with all its functionalities
;# - retrieving and saving of data from/to its own Ini file
;# - makes sure PSPad isn't running
;# - checks all needed files exist
;# - asks which highlighter to replace, if too many exist
;# A second script (in data subfolder) is included and contains all subroutines to
;# - read AHK syntax files
;# - checks if commands, functions and directives are in DEF template
;# - create the DEF and INI file for PSPad
;# - backup current DEF and INI files
;# - install DEF and INI files
;# - backup current PSPad.INI and KeyMap.INI
;# - change settings in PSPad.INI
;# - change shortcuts in KeyMap.INI
;# - installs AHK toolbar with a shortcut for PSPad
;#
;# The syntax highlight colours in PSPad are quite easy to change
;# - Settings => Highlighter settings => AutoHotkey (at the bottom of the list)
;# In the same window on the other tabs the settings for the external programs
;# and the compiler can be edited.
;#
;# OS: Windows XP
;# AHK version: 1.0.44.10 (<!-- m -->http://www.autohotkey.com/download/<!-- m -->)
;# PSPad version: 4.5.2 b2234 (<!-- m -->http://www.pspad.com/en/download.php<!-- m -->)
;# Language: English
;# Date: 2006-09-02
This script started in this old post