How to get Sublime Text 2 to understand unity js?

http://www.sublimetext.com/blog/articles/sublime-text-2-beta

This ide is full of sex appeal. Any suggestions how to begin making a file or something that will make it understand unity commands?

I’m willing to tackle it myself with a bit of guidence.

maybe theres some way to include a list of objects into the autocomplete, but even if you include a list of items, it would not understand return types and class members, just a plain list

to include a truly integrated system it would require a reflection based intelli prompt as the one in monodevelop or visual studio, unless you figure out another way of doing it

i have tried it to do a unity script editor in the past, but i failed horribly in the autocomplete part and it only had syntax hightlighting, i decided to just use something that already existed

sorry that i cant be of help, but kudos to you if you manage to succeed

hippo, this would indeed be great, as SublimeText is an amazing text editor. I’ll probably switch to it, regardless. It’s blazing fast and slick.

didn’t get any info back from the author on his site unfortunately. maybe it’s compatible with textmate files as I read something about it supporting plist for syntax.

Sublime Text 2 is compatible with textmate bundles.

I just tested : GitHub - thylaxene/Unity-JS-TextMate-Bundle

by dropping it into : /Users/XXX/Library/Application Support/Sublime Text 2/Packages/User

syntax highlighting is working, “Unity (Javascript)”, and so do the tab triggers.

not the auto-complete/code-completion stuff though.

Sublime Text 2 ROCKS!

It’s sexy isn’t it lol.

Worked great, Sublime is just beautiful! thanks a lot featherodd!

no prob :slight_smile:

Any idea how it works on PC since I haven’t worked that part out? :slight_smile:

Not sure. On mac I simply dropped the bundle in the /User folder found underneath where SM2 stores it’s packages:

/Users/YOURUSER/Library/Application Support/Sublime Text 2/Packages/User

I assume the procedure would be the same for PC.

For those looking for C# unity highlighting in Sublime I wrote a custom language file a while back. You can find it on my blog here:
http://www.jacobpennock.com/Blog/?p=490

Update:
I added a language file for JavaScript yesterday.

Awesome Jacob, thanks for the files :smile: