Code Block
Display source code in a readable format.
How to use
- Paste code and choose the syntax language.
- Set theme, font size and line numbers.
Things to check
Code is displayed, not executed; do not put secret keys in a presentation.
Property reference
Select the module in the editor to change its settings. Technical identifiers below are kept unchanged for reference; some advanced fields are stored as structured data rather than separate controls.
23 / 23
backgroundColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringborderColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringborderRadius
Changes the associated element dimension or spacing. Follow the editor unit and check overflow or cropping.
numbercode
Source code to display; this block does not execute it.
stringcommentColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringfontFamily
Font family. Keep headings and body text consistent with the presentation typography.
stringfontSize
Changes the associated element dimension or spacing. Follow the editor unit and check overflow or cropping.
numberheaderBackgroundColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringheaderTextColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringhighlightBackgroundColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringhighlightLines
Numbers of the code lines to highlight.
number[]keywordColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringlanguage
The syntax language used for code highlighting; this does not translate content.
stringlineNumberBackgroundColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringlineNumberColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringpadding
Changes the associated element dimension or spacing. Follow the editor unit and check overflow or cropping.
numbershowCopyButton
Enables or disables the associated behavior or visible element. Check the result in presentation preview.
booleanshowLineNumbers
Enables or disables the associated behavior or visible element. Check the result in presentation preview.
booleanstringColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringtextColor
Sets the color of the associated element or surface. Use the color picker and check text contrast.
stringtheme
Selects appearance or movement style for the associated element. Valid choices are provided in the module editor.
'dark' | 'light' | 'github' | 'monokai' | 'solarized'title
Visible copy or a label for this element. Write concise, descriptive content and check it fits the layout.
stringwrapLines
Enables or disables the associated behavior or visible element. Check the result in presentation preview.
boolean