Skip to main content

Format Code

  • Tags:

Examples

Heading
Smaller heading

Inline text 

Example link text 

Icon font

Use in web applications, on buttons, and anywhere you need more than a few icons.

<i class="modus-icons" aria-hidden="true">format_code</i>

SVG sprite

Use for static sites when you only need a few icons.

<svg class="mi" width="1em" height="1em" fill="currentColor">
  <use xlink:href="/transportation-icons.svg#format-code" />
</svg>

SVG code

Use when you don't want any dependency.

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="mi-solid mi-format-code" viewBox="0 0 24 24">
  <path d="M21.5 18.65h-18c-.55 0-1 .45-1 1s.45 1 1 1h18c.55 0 1-.45 1-1s-.45-1-1-1M3.15 16.69c.13.06.27.09.4.09.24 0 .49-.1.69-.27l3.98-3.66c.23-.21.36-.52.36-.84s-.13-.63-.36-.84L4.24 7.51a1 1 0 0 0-1.09-.19c-.39.17-.65.57-.65 1.03v7.32c0 .45.25.86.65 1.03ZM3.5 5.35h18c.55 0 1-.45 1-1s-.45-1-1-1h-18c-.55 0-1 .45-1 1s.45 1 1 1m18 5.65H11.45c-.55 0-1 .45-1 1s.45 1 1 1H21.5c.55 0 1-.45 1-1s-.45-1-1-1m0 3.82H11.45c-.55 0-1 .45-1 1s.45 1 1 1H21.5c.55 0 1-.45 1-1s-.45-1-1-1m0-7.64H11.45c-.55 0-1 .45-1 1s.45 1 1 1H21.5c.55 0 1-.45 1-1s-.45-1-1-1"/>
</svg>

SVG CSS code

Use for embedding your icons in CSS with no dependency.