Skip to content
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 highlight? #408

Closed
bennyhuo opened this issue Jan 23, 2017 · 5 comments
Closed

Support kotlin highlight? #408

bennyhuo opened this issue Jan 23, 2017 · 5 comments

Comments

@bennyhuo
Copy link

Kotlin is a Jvm language by Jetbrains. Would it be supported?

@jrappen
Copy link

jrappen commented May 30, 2017

Using the following file:

https://github.com/isagalaev/highlight.js/blob/master/src/languages/kotlin.js

when updating the included version of highlight.js here:

https://github.com/adam-p/markdown-here/blob/master/src/common/highlightjs/highlight.js

should do the trick. Included languages can be selected using the download generator from:

https://highlightjs.org/download/

@jrappen
Copy link

jrappen commented May 30, 2017

PR #403 fixes this issue.

@shenguojun
Copy link

Kotlin seems not working in the current version, checked https://github.com/adam-p/markdown-here/blob/master/src/common/highlightjs/highlight.js and cannot find registerLanguage for Kotlin also. Is there some else needed to do to support Kotlin?

@shenguojun
Copy link

@jrappen I have tried to add kotlin highlight function to https://github.com/adam-p/markdown-here/blob/master/src/common/highlightjs/highlight.js and add chrome extension from the src/ directory, but still don't work. Can you give me some help?

@shenguojun
Copy link

Finally I have solved these problem. For people need kotlin heighlight & weixin open platform style support can use the code here https://github.com/shenguojun/markdown-here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants