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!
请先登录再写评论。
The easiest solution is to use `FileTypeManager.getInstance().getFileTypeByExtension("kt")`.