You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/line-numbers/index.html
+4-3
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ <h2>Line Numbers</h2>
27
27
<h1>How to use</h1>
28
28
29
29
<p>Obviously, this is supposed to work only for code blocks (<code><pre><code></code>) and not for inline code.</p>
30
-
<p>Add class<strong>line-numbers</strong> to your desired <code><pre></code> and line-numbers plugin will take care.</p>
30
+
<p>Add the<strong>line-numbers</strong>class to your desired <code><pre></code>, and the line-numbers plugin will take care of the rest.</p>
31
31
<p>Optional: You can specify the <code>data-start</code> (Number) attribute on the <code><pre></code> element. It will shift the line counter.</p>
32
-
<p>Optional: To support multiline line numbers using soft wrap add css <code>white-space</code>to<code>pre-line</code>or <code>pre-wrap</code>.</p>
32
+
<p>Optional: To support multiline line numbers using soft wrap, apply the CSS <code>white-space: pre-line;</code>or<code>white-space: pre-wrap;</code>to your desired <code><pre></code>.</p>
33
33
</section>
34
34
35
35
<section>
@@ -49,9 +49,10 @@ <h2>Unknown languages</h2>
49
49
<preclass="language-none line-numbers"><code>This raw text
50
50
is not highlighted
51
51
but it still has
52
-
lines numbers</code></pre>
52
+
line numbers</code></pre>
53
53
54
54
<h2>Soft wrap support</h2>
55
+
<p>Please note the <code>style="white-space:pre-wrap;"</code> in the code below.</p>
0 commit comments