impasto
    Preparing search index...

    Interface LoadedCode

    The result of the code loader.

    interface LoadedCode {
        filename: string;
        lineNumbers: true;
        scope: undefined | string;
        tree: Root;
    }
    Index

    Properties

    filename: string

    The filename of the resource being highlighted.

    lineNumbers: true

    Whether to include line numbers in the highlighted code.

    This is always true, and is included for convenience when passing the result to other parts of the system. The thinking is that you're more likely to want line numbers than not when the code being highlighted comes from an external file.

    scope: undefined | string

    The scope of the highlighted code, derived from the resource path.

    tree: Root

    The HTML AST representing the highlighted code.