website
git clone https://git.pyrossh.dev/website
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
b052a68
— pyrossh
2026-07-07T12:10:47+05:30
fix: add code language class to file view for syntax highlighting hooks
packages/workers/repos/files/detail/src/index.tsx
CHANGED
|
@@ -43,7 +43,11 @@ export default {
|
|
|
43
43
|
} else if (contentBuffer) {
|
|
44
44
|
const text =
|
|
45
45
|
new TextDecoder("utf-8").decode(contentBuffer).trim() || "No content to display.";
|
|
46
|
+
content = (
|
|
47
|
+
<pre>
|
|
46
|
-
|
|
48
|
+
<code class={`language-${file.ext}`}>{text}</code>
|
|
49
|
+
</pre>
|
|
50
|
+
);
|
|
47
51
|
} else {
|
|
48
52
|
content = <p>Unable to load file content.</p>;
|
|
49
53
|
}
|