Display Kotlin file in EditorTextField

Hello

 

I'm trying to display simple Kotlin Hello World application in EditorTextField. But I can't find Kotlin FileType. For example for Java I can use 

StdFileTypes.JAVA

Can you, please, help how to get proper file type for display Kotlin in EditorTextField.

 

Thank you!

0
1 comment

The easiest solution is to use `FileTypeManager.getInstance().getFileTypeByExtension("kt")`.

0

Please sign in to leave a comment.