This syntax highlighting guide is based on the Notepad++ user-defined syntax colouring I have made for writing GorillaScript code.
Font
········································································································································································
The font used is Lucida Console at size 9 (point).
Black (#000000) is the colour used by any non-stylized portions of code such as operators and non-keyword identifiers.
Example:
This is an example of the font.
|
Keywords
········································································································································································
Colour: Orange (#FF8000 or RGB 255, 128, 0)
Words:
function class group script
constructor destructor copier
cast protocol implement
char short int byte atom word
dword real real8 string bool
null true false this ii new
if then else elseif while do
loop for as is and not return
yield end isnull isvalid switch
case exec default abort or
local global self constant
alias shared public
attribute
defscope noexec scriptname
|
Macro Keywords
········································································································································································
Colour: Purple (#800080 or RGB 128, 0, 128)
Words:
_line _version _name
|
Numbers
········································································································································································
Colour: Red (#FF0000 or RGB 255, 0, 0)
Types:
// integer numbers
12345
-12345
// floating-point numbers
12.345
-12.345
// scientific-notation floating-point numbers
12.345e3
-12.345E-3
|
Strings
········································································································································································
Colour: Green (#008000 or RGB 0, 128, 0)
Delimiters:
Double-quotes ("") surrounding any text signifies a string.
Single-quotes ('') surrounding any text signifies a character literal.
Remarks:
Both types of strings must ignore the escape sequences \" and \' as these are valid characters in a string and do not end the string.
Strings and character literals cannot span multiple lines.
Example:
normal-code "Text! \" << this double-quote does not terminate the string. This one does >> " normal-code
normal-code '\'' + 'A' normal-code
|
Comments
········································································································································································
Colour: Sky Blue (#0080FF or RGB 0, 128, 255)
Delimiters:
Double-forward slash '//' comments out the rest of the line
Forward-slash, asterisk '/*' comments out until asterisk, forward-slash combination '*/'.
Style:
normal-code // until end of line
normal-code /* until
multi-line comment end */ normal-code |
|
Sidebar Heading:
Sidebar text
|