Category:Vedit macro language: Difference between revisions

More details about Vedit, short/long keywords, running the examples
(Added chapter "Rosetta Code examples", about lang tag.)
(More details about Vedit, short/long keywords, running the examples)
Line 1:
{{language|Vedit macro language}}
'''Vedit''' is a commercial text editor for [[Windows]] and MS-DOS operating systems.
 
Vedit was one of the first full screen editors in the market. It was first published in 1980 for CP/M operating system.
Versions for CP/M-86, OS/2, Unix and QNX were later published, but those are not available any more.
Vedit is fast and compact (it is mostly written in Assembly language).
Its notable feature is the ability to edit any file, including EBCDIC, database and binary files and huge multi-gigabyte files.
 
Vedit has a [[C]]-like '''macro language'''. Unlike external scripting languages used by some editors, the macro language has full access to all functions and internals of the editor. Anything you can do with the editor can be done with macro language, too.
 
The keywords in Vedit macro language usually have both long and short form.
For example the command <tt>Reg_Copy_Block</tt> can be shortened to <tt>RCB</tt>.
For readability, long keywords are preferred in the Rosetta Code examples.
 
== Rosetta Code examples ==
There is no [[Help:GeSHi#Supported_source_tags|syntax highlighting support]] for Vedit macro language here in Rosetta Code.
However, let's use the tag &lt;lang vedit&gt; ... &lt;/lang&gt; to mark the code blocks, in case the support will be added some day.
 
=== Running the examples ===
 
Most examples are full "applications" ready to run in Vedit.
To run an example, save the code in a file and run it with Misc &rArr; Load/Exec User macro.
Or alternatively, copy it to text register 100 and run it with Misc &rArr; Execute macro.
 
Note that some examples output to current edit buffer, so you should not run the examples while you have an important documents open.
 
 
==Citations==
Anonymous user