Join the wishlist

Code Block

Code with real syntax coloring.

Renders code verbatim with one of 21 coloring themes. Static mode uses one theme; dynamic mode follows the viewer's own light or dark setting with a theme for each.

Properties

  • Code: the code itself, verbatim. Required.
  • Theme: static (one theme) or dynamic (follows the viewer's light or dark).
  • Theme name: the theme in static mode.
  • Light theme / Dark theme: the pair in dynamic mode.
  • Language: the language the block holds. Drives the coloring. 33 languages from C to YAML.
  • Fill: a surface color over the theme background.
  • Border: a border over the theme.
  • Padding: inner space, in pixels.
  • Border radius: corner radius, in pixels.
Code Block · Docs · Tentis