added richtig viel sachen

This commit is contained in:
Janis
2022-12-18 22:37:01 +01:00
parent bb49f58ace
commit 073a1bf728
57 changed files with 10394 additions and 55 deletions

View File

@@ -0,0 +1,19 @@
"use client";
import React from "react";
import { useEffect } from "react";
import Prism from "prismjs";
import "../../../styles/prism_themes/prism-one-dark.css";
//import "../../../styles/prism_themes/prism-one-light.css";
export default function LoadPrism() {
useEffect(() => {
document.querySelectorAll("pre").forEach((pre) => {
if (pre.classList.length < 1) {
pre.classList.add("language-");
}
});
Prism.highlightAll();
}, []);
return <div></div>;
}