https://kotlinlang.org logo
#getting-started
Title
# getting-started
e

elect

09/29/2021, 8:30 AM
design question: why when you mark with a
@DslMarker
annotation class a method, this gets displayed as yellow? Is this because we want to explicitly show to the user that this is a DSL method?
c

CLOVIS

09/29/2021, 4:31 PM
What gets marked as yellow? If you mean the annotation you created, that's just how IDEA renders annotations (all of them). You can change the color in Settings › Editor › Color Style (I don't remember the exact place, but I guarantee it's somewhere in there)
e

elect

09/29/2021, 4:34 PM
Copy code
@KygeMarker
fun schedule(block: Cron.() -> Unit)
Otherwise, without
KygeMarker
defined as
Copy code
@DslMarker
annotation class KygeMarker
c

CLOVIS

09/29/2021, 6:42 PM
Oh, it it new? I've never noticed that
e

elect

09/30/2021, 7:48 AM
no idea
do you have it as well?
@Alexey Belkov [JB] since you are responsible for the intellij channel, do you happen to know anything about this? Ps: sorry if I quoted you directly but I didn't want to double post in #intellij
a

Alexey Belkov [JB]

09/30/2021, 8:07 AM
Presumably it is to highlight that this is a special DSL method. See "File | Settings | Editor | Color Scheme | Kotlin | Dsl"