|

|
|
awk Mode
Awk Configuration Component contains highlighting, active strings, menu and tool bar customizations for awk. Here awk means gawk, a GNU
implementation which is available through Internet. You can get it from http://www.gnu.org.
Installation
The downloaded ZIP file should be extracted in %b\Config\Awk, where %b usually means
- on WinNT/2000/XP working as Administrator or in single user mode,
or on Win95/98/Me:
- X:\Program Files\WinEdt Team\WinEdt
- on Windows NT/2000/XP working as an ordinary user:
- X:\Documents and Settings\<username>\Application Data\WinEdt,
or
- X:\WinNT\Profiles\<username>\Application Data\WinEdt
-
- any special directory where you installed WinEdt, for example,
- G:\WinEdt.
Now, you have two choices.
- no-TeX installation
If you like a menu and toolbar system without TeX/LaTeX
interface, then, start WinEdt and run macro, install.edt, via
Macros|Execute Macro..., which is in %b\Config\Awk\no-TeX.
The original toolbar as well as menus, Insert and Accessories,
will be completely replaced by new ones.
- co-TeX installation
If you like a menu and toolbar system combines both awk
and TeX/LaTeX interface, then, start WinEdt and run macro,
install.edt, via Macros|Execute Macro..., which is in
%b\Config\Awk\co-TeX.
A new menu, Awk, and two button icons will be added to the menu
system and the toolbar, respectively.
What does it contain?
Highlighting
The highlighted items (switches) are
- field variables of the form: $0-9a-zA-Z
- strings: "*" or '*'
- regular expressions: /?/
- function names of the form: func *name* (, or
function *name* (
The highlighted items (keywords) are
- awk keywords
- awk standard functions
- awk built-in variables
- awk escapes (\n,\t,\r,\S,\s...)
Active Strings
| String | Action |
| {{ | inserts a block |
| iff | if-else block |
| whh | while block |
| doo | do-while block |
| foo | for (; ;) { } block |
| fuu | inserts the contents of the file %b\Config\Awk\funchead.awk |
Insert Menu (for no-TeX Installation)
| Item | Action |
| Code Frame | Inserts the contents of file %b\Config\Awk\new.awk. |
| Function Frame | Inserts the contents of file %b\Config\Awk\funchead.awk. |
| Awk functions | Grouped by function |
| Awk built-in variables | Grouped by function and similarity |
| Awk control blocks |
Accessories Menu (for no-TeX Installation)
| Item | Action |
| Run awk code | Runs the awk interpreter 'gawk.exe' (it has to be in your PATH) |
| Awk help | Starts gawk.hlp if it exists. Or, opens text file awk.hlp. |
Accessories Menu (for co-TeX Installation)
| Item | Action |
| Run awk code | Runs the awk interpreter 'gawk.exe' (it has to be in your PATH) |
| Awk help | Starts gawk.hlp if it exists. Or, opens text file awk.hlp. |
| OS Shell | Starts OS shell. If you integrate WinEdt with cygwin, that will start bash shell. Otherwise, a MS DOS Command Prompt window will pop
up. |
+ The same menu items as Insert Menu for no-TeX Installation.
Download
awk.zip [21 KB]
Mode contributed by Zhongxiao (David) Wang <zwang mail.smu.edu>
|