Summary Files Commits Branches @commit @diff @stats
path: root / docs / elements / code.html
diff options
context:
space:
mode:
1 files changed, 9 insertions, 2 deletions
-rw-r--r--docs/elements/code.html11
diff --git a/docs/elements/code.html b/docs/elements/code.html
index e6c88aa..fe9ec24 100644
--- a/docs/elements/code.html
+++ b/docs/elements/code.html
@@ -76,6 +76,8 @@
</li>
<li class="menu-item"><a href="../layout/responsive.html">Responsive</a>
</li>
+ <li class="menu-item"><a href="../layout/hero.html">Hero</a>
+ </li>
<li class="menu-item"><a href="../layout/navbar.html">Navbar</a>
</li>
</ul>
@@ -200,8 +202,13 @@
</div>
</div>
<p>Code is used for styling inline and multiline code snippets.</p>
- <p>For inline code, you can use the &lt;code&gt; element.
- For multiline code snippet blocks, you can use &lt;pre&gt; with the <code>code</code> class as a container, and add &lt;code&gt; inside it.
+ <h4 class="s-subtitle" id="code-inline">Inline code<a class="anchor" href="#code-inline" aria-hidden="true">#</a></h4>
+ <pre class="code" data-lang="HTML"><code><span class="hljs-comment">&lt;!-- inline code --&gt;</span>
+<span class="hljs-tag">&lt;<span class="hljs-name">code</span>&gt;</span>code<span class="hljs-tag">&lt;/<span class="hljs-name">code</span>&gt;</span>
+</code></pre>
+ <p>For inline code, you can use the &lt;code&gt; element. </p>
+ <h4 class="s-subtitle" id="code-snippet">Code snippet<a class="anchor" href="#code-snippet" aria-hidden="true">#</a></h4>
+ <p>For multiline code snippet blocks, you can use &lt;pre&gt; with the <code>code</code> class as a container, and add &lt;code&gt; inside it.
The <code>data-lang</code> attribute is rendered as the language name in the top right.
</p>
<pre class="code" data-lang="HTML"><code><span class="hljs-comment">&lt;!-- code snippets --&gt;</span>