Thanks, that's probably the best way.
I made ~/.config/geany/filedefs/filetypes.kotlin
:
[styling=Java]
[keywords=Java]
# https://kotlinlang.org/docs/reference/keyword-reference.html
primary=as as? fun in !in object typealias val var when by constructor delegate dynamic field file get init param property receiver set setparam where actual annotation companion const crossinline data expect external infix inline inner internal lateinit noinline open operator out reified sealed suspend tailrec vararg field it
# https://kotlinlang.org/docs/reference/basic-types.html
secondary=Double Float Long Int Short Byte NaN
# documentation keywords for javadoc
doccomment=
typedefs=
[lexer_properties=Java]
[settings=Java]
extension=kt
mime_type=text/x-kotlin
[build_settings]
# For this to work, the main class should be the same name as the file
compiler=kotlinc "%f"
run_cmd=kotlin "%e"
# If you usually use Kotlin as a scripting lang, use this instead
#compiler=
#run_cmd=kotlin -script "%f"
Then, in filetype_extensions.conf
I added:
Kotlin=*.kt;*.kts;
[Groups]
Programming=Arduino;Clojure;CUDA;Cython;Genie;Scala;Kotlin
I assume I need to do something more? Where should I specify filetypes.kotlin?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.