From b777a03857cba6322929e3f11a4bb14d0338d160 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 14 Nov 2018 14:43:30 +0800 Subject: Update Docs examples --- docs/elements/code.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/elements/code.html') diff --git a/docs/elements/code.html b/docs/elements/code.html index 40988a3..fe9ec24 100644 --- a/docs/elements/code.html +++ b/docs/elements/code.html @@ -202,8 +202,13 @@

Code is used for styling inline and multiline code snippets.

-

For inline code, you can use the <code> element. - For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. +

Inline code

+
<!-- inline code -->
+<code>code</code>
+
+

For inline code, you can use the <code> element.

+

Code snippet

+

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 -->
-- 
cgit v1.3.1-23-gd82d