We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题
主题中依赖的代码块样式https://github.com/PrismJS/prism-themes 支持的语言比较少。 也就是Java,JavaScript,C,CSS,xml等等。
希望实现的效果
我添加Kotlin,Gradle,Groovy,DOS的脚本等 语言的代码,代码块样式就完全不支持了。显示的默认灰色
建议方案
建议可否替换为 https://highlightjs.org/库
这个库支持的代码可以说几乎全部都有了。
这个是这个库的样式的Demo:https://highlightjs.org/static/demo/
The text was updated successfully, but these errors were encountered:
@yangzeng 首先感谢您的建议,由于这个主题最开始只是自用,所以没引入那些使用频率低的语言 tokens,Prism 也是可以添加语言的。对于这种基于运行时的解析,暂时没打算引入所有语言支持,且 highlight.js 一样也需要按需引入,资源包太大了,会阻塞渲染且很多流量被浪费掉了。不支持的语言目前会以 Plaintext 的形式展示。
tokens
Prism
highlight.js
Plaintext
下个版本可能会增加一些语言支持。
Sorry, something went wrong.
好的明白了。 希望能够添加kotlin 的支持 😄
@yangzeng 1.0.8 已优化
No branches or pull requests
问题
主题中依赖的代码块样式https://github.com/PrismJS/prism-themes 支持的语言比较少。
也就是Java,JavaScript,C,CSS,xml等等。
希望实现的效果
我添加Kotlin,Gradle,Groovy,DOS的脚本等 语言的代码,代码块样式就完全不支持了。显示的默认灰色
建议方案
建议可否替换为 https://highlightjs.org/库
这个库支持的代码可以说几乎全部都有了。
这个是这个库的样式的Demo:https://highlightjs.org/static/demo/
The text was updated successfully, but these errors were encountered: