Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

Custom filetype #288

Closed edvardm closed 6 years ago

edvardm commented 10 years ago

This is an excellent mod! Kudos for that.

I created a simple extension for writing more complex kOS scripts with sublime, https://github.com/EdvardM/kOS-Sublime/. However, to me it looks like only .txt files are supported. It would be great if there was another extension you could support, so that editors could auto-detect kerboscripts.

Once again, thanks for the excellent mod that restored my interest in control system algorithms and stuff!

erendrake commented 10 years ago

Not a bad idea. the filetype *.KOS is not widely used so i think it could be a fairly safe choice.

JoCRaM commented 10 years ago

...do it the unix way... start your files with the magic "number" //kOS

:tongue:

erendrake commented 10 years ago

@JoCRaM I like the idea of supporting both, *.kos and/or start with #!kscript

Dunbaratu commented 10 years ago

I wrote a syntax file for Vim for kosscript several weeks ago, and told it to activate on any .txt file which has //KOS as the first characters. Seems to work just fine, although I don't know what system Sublime uses for syntax recognition.

edvardm commented 6 years ago

Closing this, as there is plenty of well-supported modes for most popular editors already with appropriate extensions.