We're consistently asked about the software that we use to develop websites. Recently, both Justin and I have made a change that we both found exciting. We're using the new IDE Sublime Text 2 . We've been using it for close to a month now and we thought that it'd be nice to tell people about it.
Read more about Sublime Text 2 on their development blog.
The current version of my syntax highlighting theme, "Soylent Theme."
To install: open ST2, choose 'preferences', 'browse packages', choose 'user', and drop the file there. You can then change to the theme by going to 'preferences' and choosing it under 'color scheme -> user'. In addition I highly recommend installing "Package Control " and use it to install the "Dark Soda UI Theme" as it compliments my syntax highlighting theme very well.
1 Comments
Theshiftexchange posted...
Hi Shawn, you mention in your video about a plugin package that auto-refreshes the webpage your working on? Is this only for HTML development - or did you find something that suits CI development?
Sinan Eldem posted...
Will you please share you syntax highlighting?
Thanks.
Sinan Eldem posted...
Thanks Shawn, it worked great for me.
Shawn McCool posted...
You can determine a 'scope' in your snippets. I don't know how this translates regarding TM bundles. However, I neglect to generate a scope for my snippets as I generally want them to fire off anywhere that I actually use ST2.
Shawn McCool posted...
Truly, you can close the app without saving your files, then load it back up and there they are. Magic.
Shawn McCool posted...
Sure, I just now added it to the body of the post.
Shawn McCool posted...
It was something that I hackishly created in 5 minutes or so. It's quite easy. I don't actually even use it. It's python scripting implementation is pretty good.
Shawn McCool posted...
In what sort of situations do you use multiple selections?
Marco Monteiro posted...
This weekend probably I'm going to work on some spinets for Codeigniter :)
Do you know if there's any code completion for Codeigniter functions? There was a bundle for Textmate but I think it was only for CI 1.7.
Marco Monteiro posted...
The thing that impresses me the most on ST2 is how quick I can restart from were I left the project. It's really amazing.
Marco Monteiro posted...
I'll give it a go tomorrow =) thanks Chris
Marco Monteiro posted...
I normally use multiple selection for renaming variable and stuff like that.
Justin Seiter posted...
I was able to duplicate your issue. I noticed the triggers started working once I added an opening PHP tag.
Justin Seiter posted...
I like to use the side-by-side multi-pane editing for working with LESS. A lot of times I'll utilize a "variables" file to house global declarations for colors/type/etc. So, one pane will always have the variables file open while the other pane will have multiple files open.
James Brooks posted...
Multi selections are the bomb. I can't live without them any more. That and so much more make Sublime Text 2 the best editor going.
All we need now is fontStyles in .tmthemes and an extended plugin set and we're good to go!
James Brooks posted...
For many situations. If I'm writing conditional queries/statements, appending/prepending variable names or whatever.
Once you start using it, you won't look back.
Ian posted...
Works the same in the bundle snippets. At least with the older ci bundle. I edited the snippet and tried changing the scope to *.* where it was set to text.php. That doesn't work but completely removing the scope allows me to fire it off as soon as I open ST2 without typing the open php tag or saving it.
It's not a big deal but I tend to work by quickly create a new file, set up the class or what ever and then save it so removing the scope all together works.
Ian posted...
Hey, thanks for the info. I really like sublimetext2. Can you offer any suggestions as to the installation of tmbundles on the Linux version of sublimetext2 ?
In particular I can't get the tab trigger to work with any of the codeigniter tmbundles. Is this due to differences in key bindings or something? The snippets work if I navigate to them in the menu and click on them. It's just the tab trigger doesn't work. I tried the one from nettuts, another one from githum for 2.0 made by bluefusion, and the 1.7 one suggested by Chris Schmitz.
I'm using Ubuntu 10.04
Thanks
Ian posted...
Ah... yep and save it as a php file first too so it knows what snippets apply. Thanks Justin.
Chris Schmitz posted...
I used to use this one for 1.7.x: https://github.com/gaker/codeigniter-textmate-bundle
A lot of what's in there probably still applies to 2.x so it might be a good starting point.