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

Kotlin language support #14594

Open
HasnainAD opened this Issue Nov 10, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@HasnainAD
Copy link

HasnainAD commented Nov 10, 2018

Brackets does not seem to be usable for Kotlin language. Please add Kotlin language support as new requested feature.

@x13machine

This comment has been minimized.

Copy link

x13machine commented Nov 26, 2018

Language support is done through CodeMirror. CodeMirror supports Kotlin, but it's not in the src/language/languages.json file. There's a bunch of languages that CodeMirror supports but aren't in the languages.json file.

You add to add this to src/language/languages.json:

    "kotlin": {
        "name": "Kotlin",
        "mode": ["clike", "text/x-kotlin"],
        "fileExtensions": ["kt"],
        "blockComment": ["/*", "*/"],
        "lineComment": ["//"]
    }
@HasnainAD

This comment has been minimized.

Copy link

HasnainAD commented Dec 17, 2018

@x13machine Hi. I couldn't find the the file src/language/languages.json file. I am using windows.

@x13machine

This comment has been minimized.

Copy link

x13machine commented Dec 17, 2018

I dunno, build it from scratch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment