DVT e Language IDE User Guide
Rev. 23.1.12, 23 May 2023

13.5 Disable Format for Code Sections

When format is disabled, a code section is completely ignored, that is it is not formatted, nor it contributes to formatting.

  • Disable format for a code section - code sections between the @formatter:off and @formatter:on pragmas are not formatted.

type color_t : [
    RED     = 0xFF0000,
    GREEN   = 0x00FF00,
// @formatter:off
BLUE = 0x0000FF,
YELLOW = 0xFFFF00,
// @formatter:on
    MAGENTA = 0xFF00FF
];

  • Disable format for a single line - lines containing the @fomatter:skip pragma inside a comment are not formatted.

type color_t : [
    RED     = 0xFF0000,
    GREEN   = 0x00FF00,
    BLUE    = 0x0000FF,
YELLOW = 0xFFFF00, -- @formatter:skip
    MAGENTA = 0xFF00FF
];