Stop the tool running in the command window c-Break
Hypertext jump in Command Results window Enter
Hypertext jump to next item in Command Results window F4
Hypertext jump to previous item in Command Results window s-F4
Activate the Command Results window c-F11
Views
Activate next view F6
Activate previous view s-F6
Help
In-context help F1
Invoke in-context help cursor s-F1
Miscellaneous
Activate the Clip Library a-0
Show or hide the Clip Library c-F3
Display in-context properties dialog box a-Enter
Activate the main menu F10
Popup the in-context document menu s-F10 or right mouse
Popup the insert date/time menu c-F10 or c-right mouse
Display the Preferences dialog box c-Q-P
Regular Expressions (POSIX)
. Any single character.
[ ] Any one of the characters in the brackets, or any of a
range of characters separated by a hyphen (-), or a
character class operator (see below).
[^] Any characters except for those after the caret "^".
^ The start of a line (column 1).
$ The end of a line (not the line break characters).
\< The start of a word.
\> The end of a word.
\t The tab character.
\f The page break (form feed) character.
\n A new line character, for matching expressions that span
line boundaries. This cannot be followed by operators
'*', '+' or {}. Do not use this for constraining matches to
the end of a line. It's much more efficient to use "$".
\xdd "dd" is the two-digit hexadecimal code for any
character.
( ) Groups a tagged expression to use in replacement
expressions. An RE can have up to 9 tagged
expressions.
* Matches zero or more preceding characters/expressions.
? Matches zero or one preceding characters/expressions.
+ Matches one or more preceding characters/ expressions.
{count} Matches the specified number of the preceding
characters or expressions.
{min,} Matches at least the specified number of the preceding
characters or expressions.
{min,max} Matches between min and max of the preceding
characters or expressions.
| Matches either the expression to its left or its right.
\ "Escapes" the special meaning of the above expressions,
so that they can be matched as literal characters.
[:alpha:] Any letter.
[:lower:] Any lower case letter.
[:upper:] Any upper case letter.
[:alnum:] Any digit or letter.
[:digit:] Any digit.
[:xdigit:] Any hexadecimal digit (0-9, a-f or A-F).
[:blank:] Space or tab.
[:space:] Space, tab, vertical tab, return, line feed, form feed.
[:cntrl:] Control characters (Delete and ASCII codes less than
space).
[:print:] Printable characters, including space.
[:graph:] Printable characters, excluding space.
[:punct:] Anything that is not a control or alphanumeric character.
[:word:] Letters, hypens and apostrophes.
[:token:] Any of the characters defined on the Syntax page for the
document class, or in the syntax definition file if syntax
highlighting is enabled for the document class.
Replacement Expressions
& Substitute the text matching the entire search pattern.
\0 to \9 Substitute the text matching tagged expression 0 through
9. \0 is equivalent to &.
\f Substitute a page break (form feed).
\i
\n Substitute a newline.
\p Substitute the contents of the clipboard.
\t Substitute a tab.
\xdd Substitute the character with hex code dd (must be 2 hex
digits, excluding 00).
\u Force the next substituted character to be in upper case.
\l Force the next substituted character to be in lower case.
\U Force all subsequent substituted characters to be in
upper case.
\L Force all subsequent substituted characters to be in
lower case.
\E or \e Turns off previous \U or \L.
Tool Parameter Macros
$File The fully qualified filename of the current
document.
$DOSFile Same as $File, except that DOS aliases are
substituted for any long names in the path, and
characters are converted to the DOS (OEM) code
set.
$UNIXFile Same as $File, except any '\' characters are
changed to '/'.
$FileName The simple filename of the current document.
$BaseName $FileName stripped of any extension.
$DOSBaseName Same as $BaseName, except that the DOS alias
is substituted for a long file name, and characters
are converted to the DOS (OEM) code set.
$WspBaseName The workspace filename, stripped of any path
and extension.
$FileDir The drive and directory of the current document.
$WspDir The drive and directory of the current workspace
file.
$FilePath The directory of the current document, stripped
of the drive.
$UnixPath Same as $FilePath, except any '\' characters are
changed to '/'.
$Dir The current working drive and directory.
$UNIXDir Same as $Dir, except any '\' characters are
changed to '/'.
$Line The cursor line within the current document.
$Col The cursor column within the current document.
$Prompt Prompt for a value to substitute for $Prompt. If it
is followed by a string in brackets, that string
will be displayed in the prompt dialog box.
$Password Prompt for a value to substitute for $Password.
The value will not be echoed as it is typed. If it is
followed by a string in brackets, that string will
be displayed in the prompt dialog box.
$Sel Selected text in the active document. This is
limited to the first line in a multi-line selection.
$SelLine The text on the line containing the cursor. This
has the side effect of selecting that line.
$SelWord The word containing the cursor. This has the side
effect of selecting that word.
$Clip Selected text in the active document, or the
whole document if nothing is selected, is copied
to the clipboard before running the tool.
$AppWnd The handle of the main application window. This
is a decimal number.
$DocWnd The handle of the active document's window.
This is a decimal number.
$Encoding The characters encoding of the active document.
This is of the forms: windows-ddd (or cpddd for
DOS), UTF-8, UTF16-LE or UTF-16BE, where
ddd is a code page number.
Page Header/Footer Macros
The normal font for subsequent text &n
A bold font for subsequent text &b
An italic font for subsequent text &i
A bold italic font for subsequent text &I
Subsequent text to be left justified &l
Subsequent text to be centered (this is the default) &c
Subsequent text to be right justified &r
The current date in Windows short form &d
The current date in Windows long form &D
The current time in Windows format &t
The filename, excluding its path &f
The full filename, including its path &F
The page number &p
The total number of pages &P
Based on the TextPad help file. Edited by freelance programmer
John Bokma. For the latest version: http://johnbokma.com/textpad/
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!