Skip to content

Commit

Permalink
Add syntax highlighting for C#
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKrasny authored and Kobzol committed Nov 17, 2023
1 parent 3d74ce7 commit ef2205c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './global.scss';
import hljs from 'highlight.js/lib/core'
import cpp from 'highlight.js/lib/languages/cpp.js'
import c from 'highlight.js/lib/languages/c'
import csharp from 'highlight.js/lib/languages/csharp'
import java from 'highlight.js/lib/languages/java'
import python from 'highlight.js/lib/languages/python'
import xml from 'highlight.js/lib/languages/xml'
Expand All @@ -18,6 +19,7 @@ import rust from 'highlight.js/lib/languages/rust'
hljs.registerLanguage('c-like', cpp);
hljs.registerLanguage('c', c);
hljs.registerLanguage('cpp', cpp);
hljs.registerLanguage('csharp', csharp);
hljs.registerLanguage('java', java);
hljs.registerLanguage('python', python);
hljs.registerLanguage('xml', xml);
Expand Down

0 comments on commit ef2205c

Please sign in to comment.