# Kotlin files have no highlighting or Icons in the Project window

**URL:** <https://discuss.kotlinlang.org/t/kotlin-files-have-no-highlighting-or-icons-in-the-project-window/8394>\
**Category:** Support\
**Created:** [July 3, 2018, 8:43pm UTC](https://discuss.kotlinlang.org/t/kotlin-files-have-no-highlighting-or-icons-in-the-project-window/8394 "2018-07-03T20:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthdotlee](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anthdotlee](https://discuss.kotlinlang.org/u/anthdotlee)\
**Post date:** [July 3, 2018, 8:43pm UTC](https://discuss.kotlinlang.org/t/kotlin-files-have-no-highlighting-or-icons-in-the-project-window/8394/1 "2018-07-03T20:43:15Z")

</div>

I’m working with some of the tutorials on getting Kotlin to work with spring, and now i’m seeing strange behavior when creating a new gradle Project with Kotlin.

When trying creating a new Kotlin file, there’s no syntax highlighting, nor any icon indicating the IDE is aware that it’s a Kotlin file:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/d/d8884e4be2a4039bb501b02697019df6c035eec2.jpg)

I haven’t been able to find a similar issue here or in Stack Overflow. Any guidance would be greatly appreciated.

EDIT:  
Even more peculiar, if i create the same class with a different name it works, but naming the file/class Greeting.kt causes the issue:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/b/bc28bc9dc6562e465f739c10cfe9ec234025fc05.png)

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [July 4, 2018, 1:30pm UTC](https://discuss.kotlinlang.org/t/kotlin-files-have-no-highlighting-or-icons-in-the-project-window/8394/2 "2018-07-04T13:30:22Z")

</div>

You need to go to Settings | Editor | File Types and remove the incorrect association of the greeting.kt file name with the plain text file type.

---

<div class="post-metadata">

**Author:** ![anthdotlee](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anthdotlee](https://discuss.kotlinlang.org/u/anthdotlee)\
**Post date:** [September 20, 2019, 8:14pm UTC](https://discuss.kotlinlang.org/t/kotlin-files-have-no-highlighting-or-icons-in-the-project-window/8394/3 "2019-09-20T20:14:34Z")

</div>

Hey! i’m back after a bit over a year. 🙂

Was curious if there’s any additional information as to how it got added there in the first place. This was a fresh project at the time and i ran into it again today with a fresh project.
