Trevixal API
    Preparing search index...

    Interface CodeCommands

    Code block commands, from @trevixal/extension-code-highlight.

    interface CodeCommands {
        insertCodeDiff?: (
            before: string,
            after: string,
            title?: string,
        ) => Command;
        insertRunnableCode?: (language: "html" | "javascript") => Command;
        insertTerminal?: () => Command;
    }
    Index
    insertCodeDiff?: (before: string, after: string, title?: string) => Command

    Two versions of some code as one diff, the changes coloured.

    insertRunnableCode?: (language: "html" | "javascript") => Command

    A block of JavaScript or HTML to run from the code bar.

    insertTerminal?: () => Command

    A terminal session, a prompt ready for the first command.