Nivekk / KOS

Fully programmable autopilot mod for KSP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom filetype

edvardm opened this issue · comments

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!

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

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

👅

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

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.

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