Skip to content

(Kotlin) kts is not recognized #3021

@AlexCzar

Description

@AlexCzar

Describe the issue
hljs.getLanguage("kts") cannot find Kotlin language.

Which language seems to have the issue?
Kotlin

Are you using highlight or highlightAuto?

highlight

Sample Code to Reproduce

hljs.getLanguage("kt"); // works
hljs.getLanguage("kotlin"); // works
hljs.getLanguage("kts"); // doesn't work

example:
https://jsfiddle.net/tao605qL/55/

Expected behavior
hljs.getLanguage("kts"); should return "Kotlin" language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions