You've probably seen code snippets in the documentation so far. This is how you can add them to your own documentation.
To add a code snippet to your documentation, use the <zinq:code>
tag. The code snippet should be placed inside the tag. The code will be displayed in a code block with syntax highlighting.
composer require mattb-it/zinq
<zinq:code>composer require mattb-it/zinq</zinq:code>
You can specify the language of the code snippet by adding the language
attribute to the <zinq:code>
tag. The code will be displayed with syntax highlighting for the specified language.
echo "Hello, World!";
<zinq:code language="php">echo "Hello, World!";</zinq:code>
You can customize the code component by adding classes or other attributes to the zinq:code
element.
echo "Hello, World!";
<zinq:code class="pl-12" language="php">echo "Hello, World!";</zinq:code>
You can center the code snippet by adding the center
attribute to the <zinq:code>
tag.
echo "Hello, World!";
<zinq:code center language="php">echo "Hello, World!";</zinq:code>