accepts children
import Code from '@fuzdev/fuz_code/Code.svelte'; content?
The source code to style.
stringdangerous_raw_html?
stringlang?
Language identifier (e.g. 'ts', 'css', 'html', 'json', 'svelte', 'md').
Selects the registered lexer and sets the data-lang attribute. null
or an unregistered id disables styling (content renders as plain text,
and an unregistered id logs an error in DEV); undefined falls back to
the default ('svelte').
string | null'svelte'inline?
Whether to render as inline code instead of a block.
booleanfalsewrap?
Whether to wrap long lines in block code (white-space: pre-wrap
instead of pre). Wraps at whitespace — long unbroken tokens (URLs,
hashes) still scroll horizontally. Ignored for inline code.
booleanfalsenomargin?
Whether to disable the default margin-bottom on block code
(var(--space_lg) when not :last-child).
booleanfalsesyntax_styler?
Custom SyntaxStyler instance, e.g. with different languages registered.
syntax_styler_globalchildren?
Optional snippet to customize how the styled markup is rendered. Receives the generated HTML string as a parameter.
Snippet<[]> & Snippet<[markup: string]>external types
SvelteHTMLElements['code']