| Line 14: | Line 14: | ||
<div class="callout note">The macros we supply on disk and the examples in this manual usually use the full command name and include empty '''"( )"''' for | <div class="callout note">The macros we supply on disk and the examples in this manual usually use the full command name and include empty '''"( )"''' for | ||
| − | commands that perform an operation and leave the '''"( )"''' off for the commands (called "internal values") that only return a value. However, we usually abbreviate the command '''Visual( )''' as just '''V'''. | + | commands that perform an operation and leave the '''"( )"''' off for the commands (called "internal values") that only return a value. However, we usually abbreviate the command '''Visual( )''' as just '''V'''.</div> |
Commands that take a single numeric argument, e.g. '''Type_Space( )''', will use the default argument of "1" if no argument is specified. | Commands that take a single numeric argument, e.g. '''Type_Space( )''', will use the default argument of "1" if no argument is specified. | ||
Therefore, the following commands <kbd>Type_Space(1)</kbd>, <kbd>Type_Space( )</kbd>, <kbd>Type_Space( )</kbd>, and <kbd>TS</kbd> are all identical. | Therefore, the following commands <kbd>Type_Space(1)</kbd>, <kbd>Type_Space( )</kbd>, <kbd>Type_Space( )</kbd>, and <kbd>TS</kbd> are all identical. | ||
vEdit's Command Syntax loosely follows the syntax of the "C" programming language. The format of commands is:
Command( arguments )
Command names can be entered in any combination of upper and lower case letters. To improve readability, we usually capitalize the first letter of each command word, e.g. Type_Space( ).
The _" character is optional and is only intended to improve readability. Most commands have a short abbreviation. It is often, but not always, the first letter of each command word.
Therefore, the following commands Type_Space( ), typespace( ), TS( ), and ts( ) are all identical.
Many commands take one or more arguments which must be enclosed in parentheses "(...)". With a few exceptions, commands that take no arguments can have the empty "( )" left off.
Commands that take a single numeric argument, e.g. Type_Space( ), will use the default argument of "1" if no argument is specified.
Therefore, the following commands Type_Space(1), Type_Space( ), Type_Space( ), and TS are all identical.