Skip to content

Commit

Permalink
Specify languages for highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed Nov 12, 2023
1 parent 156fca5 commit c6c4f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ $(() => {
anchors.add();

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

$("#navigation").load(`${config.rootPath}navigation.html`, function() {
Expand Down

0 comments on commit c6c4f8d

Please sign in to comment.