For those who are looking for a text expander application, ClipJump is a nice alternative.
This feature can be achieved using the HotPaste plugin and a syntax like this:
Code: Select all
::pp::
::phpp::
API.PasteText("<?php ?>")
SendInput {LEFT 3}
return
Note the first two lines - these are the keywords that trigger the expanded text.
This case there is two trigger word ("pp" and "phpp").
By default there is only one keyword.
Another (undocumented) addition is that you can add additional AHK commands too.
In this example the line "SendInput {LEFT 3}" is extra, and that moves the cursor to the middle of the expanded text: "<?php | ?>".
Of course you can use other nifty things, eg. "SendInput {TAB}" to move to the next input field, eg. when filling forms.
Out of the box Clipjump expands abbreviations when space, tab or enter is pressed.
I prefer only the tab key because the other two often expand words that I don't want to.
To fix this, edit "ClipJump\plugins\hotPaste.ahk" and set line 8 to
(and restart ClipJump)