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/src/elements/code.pug | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/src/elements/code.pug') diff --git a/docs/src/elements/code.pug b/docs/src/elements/code.pug index 894b617..920fea9 100644 --- a/docs/src/elements/code.pug +++ b/docs/src/elements/code.pug @@ -11,8 +11,21 @@ block docs-content include ../_layout/_ad-g.pug p Code is used for styling inline and multiline code snippets. + + +docs-subheading('code-inline', 'Inline code') + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + + code + p | For inline code, you can use the #{''} element. + + +docs-subheading('code-snippet', 'Code snippet') + + p | For multiline code snippet blocks, you can use #{'
'} with the #[code code] class as a container, and add #{''} inside it.
       | The #[code data-lang] attribute is rendered as the language name in the top right.
 
-- 
cgit v1.3.1-23-gd82d