Skip to content

Commit ca9bd72

Browse files
committed
Use highlights for more code snippets.
1 parent 4061d39 commit ca9bd72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/css/_default.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ pre, code {
151151
font-family: Consolas, Courier New, monospace;
152152
}
153153

154-
pre, .highlight.js {
154+
pre, .highlight {
155155
background: $codeBg;
156156
box-sizing: border-box;
157157
color: $codeColor;

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ <h2>Installation</h2>
3939
</section>
4040

4141
<section class="code">
42-
<pre class="editor editor-colors"><div class="line"><span class="text html basic"><span class="meta tag any html"><span class="punctuation definition tag html"><span>&lt;</span></span><span class="entity name tag html"><span>script</span></span><span>&nbsp;</span><span class="entity other attribute-name html"><span>src</span></span><span>=</span><span class="string quoted double html"><span class="punctuation definition string begin html"><span>&quot;</span></span><span>lodash.js</span><span class="punctuation definition string end html"><span>&quot;</span></span></span><span class="punctuation definition tag html"><span>&gt;</span><span class="meta scope between-tag-pair html"><span>&lt;</span></span><span>/</span></span><span class="entity name tag html"><span>script</span></span><span class="punctuation definition tag html"><span>&gt;</span></span></span></span></div></pre>
42+
<div class="highlight html"><pre class="editor editor-colors"><div class="line"><span class="text html basic"><span class="meta tag any html"><span class="punctuation definition tag html"><span>&lt;</span></span><span class="entity name tag html"><span>script</span></span><span>&nbsp;</span><span class="entity other attribute-name html"><span>src</span></span><span>=</span><span class="string quoted double html"><span class="punctuation definition string begin html"><span>&quot;</span></span><span>lodash.js</span><span class="punctuation definition string end html"><span>&quot;</span></span></span><span class="punctuation definition tag html"><span>&gt;</span><span class="meta scope between-tag-pair html"><span>&lt;</span></span><span>/</span></span><span class="entity name tag html"><span>script</span></span><span class="punctuation definition tag html"><span>&gt;</span></span></span></span></div></pre></div>
4343
</section>
4444

4545
<section>
4646
<p>Using npm:</p>
4747
</section>
4848

4949
<section class="code">
50-
<pre><code>$ {sudo -H} npm i -g npm<br>$ npm i --save lodash</code></pre>
50+
<div class="highlight shell"><pre class="editor editor-colors"><div class="line"><span class="source shell"><span>$&nbsp;{sudo&nbsp;-H}&nbsp;npm&nbsp;i&nbsp;-g&nbsp;npm</span></span></div><div class="line"><span class="source shell"><span>$&nbsp;npm&nbsp;i&nbsp;--save&nbsp;lodash</span></span></div></pre></div>
5151
</section>
5252

5353
<section>

0 commit comments

Comments
 (0)