Decorations allow you to apply custom classes to specific elements in the generated HTML. This is useful if you want to style certain regions of your code blocks differently, such as focusing attention on specific lines or adding custom colors.Documentation Index
Fetch the complete documentation index at: https://phiki.dev/llms.txt
Use this file to discover all available pages before exploring further.
Pre decorations
To add additional classes to the<pre> element that wraps the entire code block, you can pass a PreDecoration instance to the PendingHtmlOutput::decoration() method.
pre-class class to the <pre> element.
Code decorations
To add additional classes to the<code> element that wraps the entire code block, you can pass a CodeDecoration instance to the PendingHtmlOutput::decoration() method.
Line decorations
To add additional classes to line elements, you can pass aLineDecoration instance to the PendingHtmlOutput::decoration() method.
focus class to the first line of the code block, since lines are zero-indexed.
Gutter decorations
To add additional classes to the gutter element that contains line numbers, you can pass aGutterDecoration instance to the PendingHtmlOutput::decoration() method.
gutter-class class to the gutter element.