These instructions assume a linux|unix type system. Similar steps apply for MS Windows users.
To use the syntax file copy it into the directory ~/.vim/syntax (create the direcory path if not already present).
Create a file named red.vim in ~/.vim/ftdetect (again creating the directory if not already present).
This file defines .red
as the filetype of REDCODE source files. It should contain:
au BufRead,BufNewFile *.red setf redcode
The following options can be used in your .vimrc initialization file to control the degree of syntax checking:
They are all commented out by default.
"Remove quote characters on subsequent lines to enable options
"let redcode_88_only = 1
"let redcode_94_only = 1
The default behaviour is to accept '88 '94 and Pspace syntax and to not highlight numbers.
- To convert a source code file to HTML from within the editor use ":%TOhtml"
- Use this syntax file to look at Beppe Bezzi's Marcia Trionfale 1.3
taken from the Wilkies benchmark suite.
Notice anything unusual?
The second SPL line ends with a continuation character which disables the subsequent MOV line in some versions of pmars.
For a safer way to comment this warrior compare with Marcia Trionfale at the