Home Download Buy Blog Forum Support

Creating/converting a textmate bundle?

Creating/converting a textmate bundle?

Postby Tuishimi on Wed Apr 13, 2011 10:45 pm

Is there a forum post/document that describes how to convert a TextMate bundle into a sublime package?

I'd like to convert my Euphoria language bundle into something I can use with Sublime.

I've searched and seen bits and pieces about this, but I was just hoping for a definitive page/document I could have on hand as I converted the syntax files.

Thank you!
Tuishimi
 
Posts: 14
Joined: Wed Feb 09, 2011 11:19 pm

Re: Creating/converting a textmate bundle?

Postby Arioch on Thu Aug 04, 2011 10:34 am

I too would like some more information on this subject.
It's been a few months since this thread started and it had no replies yet.

Personally I'd like to convert this bundle: https://github.com/masterzen/puppet-textmate-bundle, to add Puppet syntax highlighting support.
Tried dragging and dropping the contents of the bundle inside a new directory. It shows up in the menu but when I load the syntax there's no highlighting whatsoever.

I have no clue where to begin debugging due to lack of documentation.
Arioch
 
Posts: 7
Joined: Thu Aug 04, 2011 10:33 am

Re: Creating/converting a textmate bundle?

Postby charlesroper on Thu Aug 04, 2011 4:45 pm

I recently converted the TextMate SCSS bundle to a Sublime package. Compare the two branches:

https://github.com/kuroir/SCSS/tree/TextMate
https://github.com/kuroir/SCSS/tree/SublimeText2

Basically, snippets can stay in a sub folder, everything else comes out into the root of the package. TM commands don't work in ST, so you'll have to either port them or lose them. See the following thread for a few more bits of info:

viewtopic.php?f=3&t=2592

Also, make sure you don't have any characters in filenames that are incompatible with Windows in there (Sublime is cross-platform, remember).

Let me know if you have any further questions.
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Re: Creating/converting a textmate bundle?

Postby Arioch on Thu Aug 04, 2011 9:30 pm

Alright thanks!
That'll surely got me somewhere.
Arioch
 
Posts: 7
Joined: Thu Aug 04, 2011 10:33 am

Re: Creating/converting a textmate bundle?

Postby aparajita on Fri Aug 05, 2011 2:34 am

charlesroper wrote:Basically, snippets can stay in a sub folder, everything else comes out into the root of the package.


Actually, I have discovered that you can also put keymaps and tmPreference files in subfolders.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: Creating/converting a textmate bundle?

Postby Tuishimi on Wed Feb 13, 2013 5:01 pm

So I found and have a bundle mostly working... but for some reason this:

<key>name</key>
<string>Euphoria</string>
<key>scopeName</key>
<string>source.euphoria</string>
<key>fileTypes</key>
<array>
<string>e</string>
<string>ex</string>
<string>exw</string>
<string>exu</string>
</array

Is only working for the first item in the array of fileTypes. Syntax high lighting seems to only occur for .e files. Any ideas?
Tuishimi
 
Posts: 14
Joined: Wed Feb 09, 2011 11:19 pm


Return to Technical Support

Who is online

Users browsing this forum: TurnitinBot [Bot] and 19 guests