Skip to content

Commit

Permalink
Add tsx syntax highlight support
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-kellam committed Sep 18, 2024
1 parent 0f4b610 commit 233897d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useSyntaxHighlightingExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const useSyntaxHighlightingExtension = (language: string, view: EditorVie
view ?? null,
() => {
switch (language.toLowerCase()) {
case "tsx":
case "typescript":
case "javascript":
return javascript({
Expand Down

0 comments on commit 233897d

Please sign in to comment.