extends ../_layout/_docs-layout.pug block variables - var slug = 'code' - var parent = 'elements' - var title = 'Code - Elements - Spectre.css CSS Framework' - var description = 'Code is used for styling inline and multiline code snippets. Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development.' block docs-content +docs-heading('code', 'Code') 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.

    pre.code(data-lang='HTML')
      code
        :highlight(lang="html")
          
          

    pre.code(data-lang='HTML')
      code
        :highlight(lang="html")
          
<!-- code snippets -->
          <button class="btn">
            Submit
          </button>
          
include ../_layout/_ad-c.pug include ../_layout/_footer.pug