-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
Support Kotlin Code Highlight #1831
Support Kotlin Code Highlight #1831
Comments
Hi @bamboovir , As we're using prismjs for code highlighting, we're already supporting Kotlin code highlight. Just use the alias |
Hi @kefranabg, kotlin code highlighting is not work for Code Snippets, |
You mean it's not working only with code snippets imports ? |
Yes, and I have given a fix.
|
@kefranabg @bamboovir Highlighting Kotlin is working already, you just need to use correct language alias (https://prismjs.com/#basic-usage) |
@larionov it's not working with code snippets imports :( |
I confirm that it is not working. Contributions welcome ! |
Feature request
What problem does this feature solve?
Support Kotlin Code Highlight
What does the proposed API look like?
How should this be implemented in your opinion?
@vuepress/core/lib/client/style/config.styl
$codeLang += kt
@vuepress/markdown/lib/highlight.js +=
if(lang === 'kt') {
lang = 'kotlin'
}
Are you willing to work on this yourself?
The text was updated successfully, but these errors were encountered: