Syntax Highlighting

These settings customize the way Sanny Builder displays various elements of the code.

Each code element has 3 properties: Foreground, Background, and Style. Available style elements are: B – bold, I – italic, U – underlined.

The highlighting configuration is also used when the code source is saved into the RTF or HTML formats.

Code elements

  • Comments – the text after // or between {} or /* */

  • Labels – the identifiers starting with @

  • Variables – the identifiers starting with $ (global variables), or ending with @ (local variables) Also the aDMA type (begins with &) and arrays are highlighted as variables.

  • Keywords – the special words stored in the file keywords.ini (one for all edit modes) and the filekeywords.txt (one per edit mode)

  • Numbers – the integer and floating-point numbers

  • Strings – the text between double quotes " " and single quotes ' '

  • Models – the identifiers starting with #

  • Classes – the part of the class command before the . character

  • Commands – the part of the class command after the . character

  • Directives – the text starting with {$