s:code

Create a code block.

INPUT
This is just a test!
INPUT
<s:code lang="html">
    <html>
        <head>
            <title>Sample Code Block</title>
        </head>
        <body>
            <h1>
                My sample HTML code
            </h1>
        </body>
    </html>
</s:code>
OUTPUT
<pre class="language-html"><code class="language-html">&lt;snippet&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Sample Code Block&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;
            My sample HTML code
        &lt;/h1&gt;
    &lt;/body&gt;
&lt;/html&gt;
&lt;/snippet&gt;</pre></code>
NOTE: <s:code> tries to automatically detect if you want a code-block or an inline-code. Use block="" to enforce code-block.
NOTE: You need to use a JavaScript library like Prism to highlight your code snippets.
☼ ☼ ☼ anotomy ☼ ☼ ☼
lang=""  language=""  

The programming language of the code snippet. Default value is text.

block=""  

Enforce the result as a code-block.