From 136b1127d32e0057f7ff558984245ac388aca820 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 29 Mar 2017 15:14:09 +0800 Subject: Add Slider bars code --- docs/elements.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/elements.html') diff --git a/docs/elements.html b/docs/elements.html index cde99eb..88d64c8 100644 --- a/docs/elements.html +++ b/docs/elements.html @@ -1222,11 +1222,17 @@

Codes

Codes are inline and multiline code snippets.

-

For inline code, you can use the element <code>. For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. The data-lang attribute is rendered as the language name in the top right.

+

For inline code, you can use the element <code>. For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. The data-lang attribute is rendered as the language name in the top right.

+
<!-- code snippets -->
+<button class="btn">
+  Submit
+</button>
+
+ -
<pre class="code" data-lang="HTML"><code><!-- code snippets -->
+
<pre class="code" data-lang="HTML"><code><span class="com">&lt;!-- code snippets --&gt;</span>
 &lt;<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">&quot;btn&quot;</span>&gt;
   Submit
 &lt;<span class="tag">/button</span>&gt;
-- 
cgit v1.3.1-23-gd82d