codeInput

A CodeInput is a special variant of TextInput that provides syntax highlighting and a gutter (column with line numbers).

@safe
alias codeInput = simpleConstructor!CodeInput

Examples

// Start a code editor
codeInput();

// Start a code editor that uses tabs
codeInput(
    .useTabs
);

// Or, 2 spaces, if you prefer — the default is 4 spaces
codeInput(
    .useSpaces(2)
);

Meta