saicaca / fuwari

✨A static blog template built with Astro.
https://fuwari.vercel.app
MIT License
1.36k stars 314 forks source link

[问题] 想问一下代码高亮是跟哪个文件相关 #85

Closed Kaida-Amethyst closed 5 months ago

Kaida-Amethyst commented 5 months ago

我这边会写一些llvm IR还有assembly的代码,这个无法高亮,会提示The language "llvm" doesn't exist, falling back to "plaintext". 我想知道这个代码高亮是跟哪个文件相关?我琢磨下怎么改这个。

Think you~ ^^

saicaca commented 5 months ago

Astro 默认使用 Shiki 提供代码高亮,你可以切换到 Prism,参见 https://docs.astro.build/en/guides/markdown-content/#change-default-syntax-highlighting-mode

Prism 应该支持 llvm IR 和 asm https://prismjs.com/#supported-languages

Kaida-Amethyst commented 5 months ago

Astro 默认使用 Shiki 提供代码高亮,你可以切换到 Prism,参见 https://docs.astro.build/en/guides/markdown-content/#change-default-syntax-highlighting-mode

Prism 应该支持 llvm IR 和 asm https://prismjs.com/#supported-languages

感谢哦 (^▽^)