Anyone else encountering this syntax highlighting ...
# getting-started
j
Anyone else encountering this syntax highlighting issue? Some function calls (
routing
and
post
) are colored like keywords though they aren't. (sorry, I know this is not Kotlin-related but I don't really know where to ask this 😕 )
2
s
I think that's working as designed. The routing functions are annotated with
@KtorDsl
, which in turn is a
@DslMarker
annotation. IntelliJ has special syntax highlighting for DSL functions like these. You can configure it in Settings | Editor | Color Scheme | Kotlin, under the Dsl section.
nod 1
j
Alright, seems to be new however, I never saw this before 😮
Thank you!
d
It can be configured in Settings -> Editor -> Color Scheme -> Kotlin Unfortunately cannot be disabled
👍 1