Skip to content

Commit

Permalink
feat: Add SQL as a language for highlight.js (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru authored Nov 14, 2023
1 parent 6d706bb commit 60d7346
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ $(() => {

// highlight.js
hljs.configure({
languages: ['ruby', 'html', 'bash']
languages: ['ruby', 'html', 'bash', 'sql']
});
hljs.highlightAll();

$("#navigation").load(`${config.rootPath}navigation.html`, function() {
$(".sidebar-sticky .icon").on("click", function (e) {
e.preventDefault();
$(this).siblings("ul").toggle();
this.classList.toggle("icon-opened");
});
Expand Down

0 comments on commit 60d7346

Please sign in to comment.