Syntax Highlighting

ADRIFT 5 Help ›› Creating Games ›› Text Boxes ››
Parent Previous Next

Syntax Highlighting

Syntax within text areas of ADRIFT 5 are highlighted when certain things are typed.  This makes it clear that you are calling a function, or referencing a key.  This helps to highlight if you have typed an invalid entry.


Keys are highlighted in red, for example:

Object12

General Functions are highlighted in blue, for example:

%ListExits[%Player%]%

Item Functions are highlighted in dark red, for example:

Player.Held.List

References are highlighted in green, for example:

%direction% or %object1%

Comments are highlighted in grey and italics, for example:

<!-- This is a comment -->

Variables are highlighted in purple, for example:

%score%

Embedded Expressions are highlighted in light blue, for example:

<# OneOf("one", "two", "three") #>

HTML tags are highlighted in purple, like so:

<b>This will be bold</b>