Skip to content

Commit

Permalink
prism languages
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichmax committed Feb 3, 2024
1 parent 433ba5d commit b7d0872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Binary file modified public/wallpaper/backgroundImage.webp
Binary file not shown.
10 changes: 7 additions & 3 deletions src/utils/SyntaxHighlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import Prism from "prismjs";

import "prismjs/components/prism-jsx";

import 'prismjs/components/prism-yaml';
import 'prismjs/components/prism-markdown';
import 'prismjs/components/prism-bash';
import 'prismjs/components/prism-sql';
import 'prismjs/components/prism-python';

// include line numbers and line highlights plugin,
//import "prismjs/plugins/line-numbers/prism-line-numbers";
//import "prismjs/plugins/line-highlight/prism-line-highlight";
Expand Down Expand Up @@ -50,9 +56,7 @@ const SyntaxHighlighter = ({
return (
<div ref={ref}>
<pre
className={`
line-numbers:${showlineNumbers},
`}
className={`line-numbers:${showlineNumbers}`}
data-line={lineHighlights?.join(",")}
>
<code className={`language-${language}`}>{code.trim()}</code>
Expand Down

0 comments on commit b7d0872

Please sign in to comment.