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 – a text after // or between {} or /* */

  • Labels – identifiers starting with @

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

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

  • Numbers – integer and floating-point numbers

  • Strings – a text between double quotes " " or single quotes ' '

  • Models – identifiers starting with #

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

  • Commands – the part of a class command after the . character, or a subroutine

  • Directives – a command starting with {$

  • Constants – identifiers, declared within the CONST..END construct. The language service must be enabled.

    • Semantic highlighting - apply the same rules to constants as to their values. Enabling this option makes shared highlighting configuration unavailable.