Skip to content

Commit 13ccf90

Browse files
committed
added custom syntax highlighting for C3 (only the base)
1 parent c7eb48b commit 13ccf90

File tree

3 files changed

+16434
-1
lines changed

3 files changed

+16434
-1
lines changed

astro.config.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from "astro/config";
22
import tailwind from "@astrojs/tailwind";
33
import starlight from "@astrojs/starlight";
4+
import fs from "node:fs";
45

56
// https://astro.build/config
67
export default defineConfig({
@@ -12,6 +13,11 @@ export default defineConfig({
1213
}),
1314
starlight({
1415
title: "The C3 Handbook",
16+
expressiveCode: {
17+
shiki: {
18+
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
19+
},
20+
},
1521
}),
1622
],
1723
});

0 commit comments

Comments
 (0)