diff --git a/plugins/line-numbers/index.html b/plugins/line-numbers/index.html index 0fcb2af8a9..e1a1994f49 100644 --- a/plugins/line-numbers/index.html +++ b/plugins/line-numbers/index.html @@ -24,7 +24,7 @@
Obviously, this is supposed to work only for code blocks (<pre><code>
) and not for inline code.
Add the line-numbers
class to your desired <pre>
or any of its ancestors, and the Line Numbers plugin will take care of the rest. To give all code blocks line numbers, add the line-numbers
class to the <body>
of the page. This is part of a general activation mechanism where adding the line-numbers
(or no-line-numbers
) class to any element will enable (or disable) the Line Numbers plugin for all code blocks in that element.
Example:
<body class="line-number"> <!-- enabled for the whole page -->
+ <body class="line-numbers"> <!-- enabled for the whole page -->
<!-- with line numbers -->
<pre><code>...</code></pre>
@@ -36,7 +36,7 @@ How to use
<!-- without line numbers -->
<pre><code>...</code></pre>
<!-- enabled for a specific element - with line numbers -->
- <pre class="line-number"><code>...</code></pre>
+ <pre class="line-numbers"><code>...</code></pre>
</div>
</body>