Skip to content

Commit

Permalink
Update syntaxhighlighter.tsx to support vue
Browse files Browse the repository at this point in the history
Added vue syntax highligh support
  • Loading branch information
hinogi authored Nov 13, 2024
1 parent 53ffd11 commit 36e6844
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import tsx from 'react-syntax-highlighter/dist/esm/languages/prism/tsx';
import typescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
import yml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml';
import ReactSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
import vue from 'react-syntax-highlighter/dist/esm/languages/hljs/vue';

import { ActionBar } from '../ActionBar/ActionBar';
import type { ScrollAreaProps } from '../ScrollArea/ScrollArea';
Expand All @@ -46,6 +47,7 @@ export const supportedLanguages = {
tsx,
typescript,
graphql,
vue
};

Object.entries(supportedLanguages).forEach(([key, val]) => {
Expand Down

0 comments on commit 36e6844

Please sign in to comment.