Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Latest commit

 

History

History
68 lines (53 loc) · 1.6 KB

File metadata and controls

68 lines (53 loc) · 1.6 KB
title Code Examples
menu_title Code
menu_order 9

Inline code example

This is inline code example. The inline code can be inserted in any html element. Here's the example of the code inside the link: Link with the code inside.

H3 with the code line in it

H4 with the code line in it.

this block is not for copy (add a {:.no-copy} class after the code block)

{:.no-copy}

Blocks of code examples

Backslash syntax

<div class="dropdown">
  <button id="dropdown" class="btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown Label
  </button>
  <ul class="dropdown-menu" aria-labelledby="dropdown">
    <li><a class="dropdown-item" href="">Item one</a></li>
    <li><a class="dropdown-item" href="">Item two</a></li>
    <li><a class="dropdown-item" href="">Item three</a></li>
  </ul>
</div>

Bash:

cd ~/sites/

Liquid highlight syntax:

{% highlight html %}

Title

Paragraph content.

{% endhighlight %}

Liquid With line numbers:

{% highlight html linenos %}

Dropdown Label
{% endhighlight %}