Skip to content

Commit

Permalink
feat: added HTML to syntax highlighter (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 authored Apr 10, 2024
1 parent a14afa5 commit 259e758
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/plugins/rehype-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ const getHighlighter: RehypeCodeOptions['getHighlighter'] = async (options) => {
scopeName: 'source.sway',
path: `${pathFolder}/sway.tmLanguage.json`,
},
{
id: 'html',
name: "html",
scopeName: "text.html.basic",
path: `${pathFolder}/html.tmLanguage.json`,
},
],
});

Expand Down

0 comments on commit 259e758

Please sign in to comment.