Indent Char

The string characters to comprise a single indentation. Any string combination is accepted. Generally speaking, you should leave this alone unless you know what you are doing.

Related Rule

The indentSize rule will use this character. For example, if you were to set indentSize to 4 then this character will be repeated 4 times, ie: - by default the indentSize is set to 2.


💡

The default indentChar is a single whitespace value.

<header>
<nav>
<ul class="foo">
<li>bar</li>
<li>baz</li>
</ul>
</nav>
</header>
<header>
  <nav>
    <ul class="foo">
      <li>bar</li>
      <li>baz</li>
    </ul>
  </nav>
</header>

💡

\t

Below we are using tab \t character for indentation.

<header>
<nav>
<ul class="foo">
<li>bar</li>
<li>baz</li>
</ul>
</nav>
</header>
<header>
		<nav>
				<ul class="foo">
						<li>bar</li>
						<li>baz</li>
				</ul>
		</nav>
</header>

💡

-

The below example is purely for demonstration purposes.

<header>
<nav>
<ul class="foo">
<li>bar</li>
<li>baz</li>
</ul>
</nav>
</header>
<header>
----<nav>
---
-<ul class="foo">
---
-
--<li>bar</li>
---
-
--<li>baz</li>
---
-</ul>
------</nav>
</header>