CodeBlock

Der CodeBlock dient der übersichtlichen Darstellung von Code als Block mit Syntax-Highlighting.GitHubMarkdown

Properties

PropertyTypeDefaultDescription
codestring-
truncateLinesnumber | boolean: falseControls truncation of long code blocks. `false` disables it, `true` truncates after 8 lines, and a number sets the maximum line count.
classNamestring-The elements class name.
childrenReactNode-
language"text" | "go" | "p" | "b" | "html" | "map" | "q" | "s" | "svg" | "m" | "markdown" | "d" | "in" | "r" | "apl" | "asc" | "asn" | "asn1" | "bash" | "bf" | "BUILD" | "bzl" | "c" | "c++" | "cc" | ... 193 more ...-
showLineNumbersboolean-
copyableboolean-

Auf dieser Seite