diff options
| Commit | 81ee834ec6914f8b284e0724d541ed927513e6bd (patch) | |
|---|---|---|
| Author | 2018-11-20 11:54:48 +0800 | |
| Committer | 2018-11-20 11:54:48 +0800 | |
| Files | ac0c29f2a5fa344bb7a05638602dd6dc60ce9e37 /docs/src/elements/code.pug | |
| Spectre-Dark-Gruvbox-0.5.6.tar Spectre-Dark-Gruvbox-0.5.6.tar.gz Spectre-Dark-Gruvbox-0.5.6.zip | ||
| Parent | ca1bdc5d86edb4d1baf3e9d1fabc89977950a2b4 (diff) | |
| Parent | ba4c380af32bc75dad1e03c2386b5f8a3fb9118f (diff) | |
Merge pull request #534 from picturepan2/0.5.6 v0.5.6
0.5.6
1 files changed, 13 insertions, 0 deletions
| -rw-r--r-- | docs/src/elements/code.pug | 13 |
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") + <!-- inline code --> + <code>code</code> + p | For inline code, you can use the #{'<code>'} element. + + +docs-subheading('code-snippet', 'Code snippet') + + p | For multiline code snippet blocks, you can use #{'<pre>'} with the #[code code] class as a container, and add #{'<code>'} inside it. | The #[code data-lang] attribute is rendered as the language name in the top right. |