Skip to content

Commit

Permalink
fix syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousLearner committed Mar 29, 2024
1 parent dac60ee commit 400cc45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import hljs from "highlight.js/lib/core";
import django from "highlight.js/lib/languages/django";
import yaml from "highlight.js/lib/languages/yaml";
import html from "highlight.js/lib/languages/vbscript-html";
import md from "highlight.js/lib/languages/markdown";
import xml from "highlight.js/lib/languages/xml";

export default function () {
hljs.registerLanguage("django", django);
hljs.registerLanguage("yaml", yaml);
hljs.registerLanguage("md", md);
hljs.registerLanguage("html", html);
hljs.registerLanguage("xml", xml);
hljs.highlightAll();
}
2 changes: 1 addition & 1 deletion pattern_library/templates/pattern_library/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h4 class="heading heading--iframe-size js-iframe-size">
</div>

<div id="tab-2" class="tabbed-content__item">
<pre><code class="code html">{{ pattern_html_source }}</code></pre>
<pre><code class="code xml">{{ pattern_html_source }}</code></pre>
</div>

<div id="tab-3" class="tabbed-content__item">
Expand Down

0 comments on commit 400cc45

Please sign in to comment.