• A code block holding plain text, optionally tagged with a language for highlighting.

    Parameters

    • text: string
    • Optionallanguage: string

    Returns CodeBlock

    const snippet = code('for (const gate of gates) close(gate)', 'ts')