Supplied Macros
VEDIT has an extensive macro programming language. Many useful macros are supplied with VEDIT and can be used without understanding their internal workings.
The supplied macros below are easy to use and are fully documented in the VEDIT User's Manual. These macros can also be set up to automatically execute when VEDIT is invoked.
Loading/Executing Macros in VEDIT
To run a macro from VEDIT:
- From the toolbar choose {MISC, Load/execute macro} or Ctrl-F7.
- A "Load/execute" dialog box will appear containing a list of macros. Similar to other {File, Open} dialog boxes, select the macro you wish run.
Command Macros
COMPARE
- VEDIT file comparison macro.
COMPDIR
- Quickly determine which of 2 sets of files differ.
CTAGS
- Create "tags" file to look up definition of symbol at edit position.
DBASE
- Extract header information and set VEDIT internal values for dBase III compatible file editing.
DISPLAY
- Simple macro for viewing files.
PFUNC
- Point and shoot selection of Pascal/Delphi functions.
- Basic print formatting macro.
SORT
- VEDIT sorting macro for multi-line records.
STARTUP
- Startup macro for VEDIT PLUS 5.0 and VEDIT 5.0.
WILDFILE
- Process entire groups of files.
{USER} Menu and Other Macros
VEDIT comes with a library of additional "keystroke macros" that can be built into the editor and assigned to a "hot-key".
- Keystroke macro library (KEY-MAC.LIB). Includes selecting window color from a color chart, duplicating characters and lines, moving the cursor by sentence, listing lines containing a text string, transposing characters, counting words and much more.
A set of custom editing functions can be added to the main menu; they appear in the special {USER} menu. The default {USER} menu includes some popular functions from KEY-MAC.LIB. As with all menu functions, the custom functions can have hot-keys assigned to them.
The editing functions in the {USER} menu are implemented using the VEDIT PLUS macro language. Although VEDIT PLUS is needed to fully realize its potential, VEDIT users can modify existing functions or add new ones by copying macros from KEY-MAC.LIB.
Other Macros in VEDIT
BOX-DRAW
- A Box Drawing Macro for VEDIT
CHDIR
- Change the default directory to the directory from which the current file was loaded.
CMD-CONV
- Clean up macro commands by replacing with uniform name.
COLOR
- Select color scheme for VEDIT. (Used by Installation).
COLORKEY
- Display a color chart for selecting a new text color.
CONVERT3TO4
- Convert old VEDIT PLUS 3.x macros to new 5.x / 6.x.
CONVERT
- Converts Newline characters between DOS, Unix and MAC. Converts between fixed-length records and Newlines.
DBASEKEY
- Set up VEDIT to edit the current file as an xBase file.
FIX2NORM
- Convert a file with fixed length records into a "normal" file with CR+LF, LF or CR as "newline".
HUGE-sr
- Performs fastest multiple search/replace in a huge file.
INSTALLW
- Installation script for VEDIT PLUS (Windows) 5.0
KEYEDIT
- Save/edit/load keyboard layout.
LOADSYN
- "Internal" macro used by Syntax_Load() command. Used to preprocess ".SYN" files for Syntax Highlighting.
MARYLAMB
- his example macro plays a simple tune. It shows how the Sound()command is used to create programmable sounds.
MULTI-sr
- Performs multiple search/replace in multiple files.
MYNOTES
- Opens the file MYNOTES.TXT for editing in a pop-up window.
PARADOX
- This file configures VEDIT to work well with Borland's Paradox & #153
SALLBUFF
- Search all buffers.
SPLITTER
- This macro splits huge files into smaller files and can merge the split files back into one file.
SRCHBLCK
- Search using current block; if no block, use current word.
SRCHFILE
- Open all files that contain searched text.
SRCHINCR
- Search incrementally.
SRCHSHOW
- Show/select all lines containing a search string.
STRIPPER
- Strips comments beginning with "//" from macros.
TUTOR
- Startup the tutorial/demo macro.
TXT-WORD
- Converts a multiple-line paragraph into one long line. Useful for pasting into a Word Processor or E-mail program.
U-TAGS
- Use "tags" to look up definition of symbol at edit position.
