Skip to main content
Use CodeBlock to configure a code example’s appearance while keeping its content in a normal Markdown code fence. The fence specifies the language; you do not need a separate language property.

Properties

Choose the language

Use a language identifier such as javascript, typescript, python, or json after the opening fence. Use auto for automatic detection or txt for plain text. Unknown languages remain readable without syntax colors. Line numbers and the editor’s copy control remain part of the existing code block behavior. They are not configurable component properties.

Use the visual editor

Insert a Code block, choose its language, and edit the code normally. Use the block’s controls to change width, wrapping, colors, or its caption. Ordinary fenced code blocks and older Lettercamp code settings remain readable; the editor saves their settings using CodeBlock notation.