Home Download Buy Blog Forum Support

Django support and related themes

Django support and related themes

Postby ekolguy on Thu Dec 24, 2009 10:41 am

Hey guys,

I was looking for Django support (both in .py and .html files) for Sublime and having found none, took one from Textmate repo, added file extensions and here we go. Also, I modified some popular themes for better template look. Hope this will be my first contribution to community. See below:

http://img64.imageshack.us/img64/3879/djangosublime.png
http://img706.imageshack.us/img706/1958 ... blime2.png

To enable Django support (no snippets for now), unzip attached folders and drop them into your Packages directory and restart Sublime. Don't forget to select Python/Django or Html (Django) for your files. Also, any automatic way to associate these content types with html and py files is really appreciated.

Hope you find it useful.

Metin
Attachments
Themes.zip
Django themes
(5.87 KiB) Downloaded 664 times
Django.zip
Django support for Sublime
(2.9 KiB) Downloaded 650 times
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

Re: Django support and related themes

Postby ilya on Thu Dec 24, 2009 11:15 am

This is very handy! Thank you for Django support and railscasts.tmTheme ;)
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Django support and related themes

Postby ilya on Fri Dec 25, 2009 9:53 am

Strange colors in railscasts.tmTheme in string 23, 372 and 383.

It looks like this: <string>#00000010</string>

What is it for? And why it works? :)
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Django support and related themes

Postby ilya on Fri Dec 25, 2009 10:55 am

Oh, it seems that it is RGBA. I did not know that the color themes can use an alpha channel. That's cool!
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Django support and related themes

Postby ekolguy on Mon Dec 28, 2009 9:34 am

Yes, RGBA is the new and better way to define colors with transparency. Really useful.
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

Re: Django support and related themes

Postby tmarshall on Sat Jan 02, 2010 6:01 am

What color scheme are you using in the screenshots you posted? When I install the Django support, all of my Django Template tags/filters have the same color no matter which theme I try.

How can I get it to highlight the tag names and arguments separately the way it is in your screenshots.
tmarshall
 
Posts: 2
Joined: Sat Jan 02, 2010 5:47 am

Re: Django support and related themes

Postby ekolguy on Tue Jan 05, 2010 7:11 am

tmarshall,

Did you install themes I posted above? If so, make sure you select/assign the correct syntax for py and html files, that is Python Django and Html (Django) respectively. Should work without problems.
ekolguy
 
Posts: 41
Joined: Thu Dec 17, 2009 8:50 am

Re: Django support and related themes

Postby tmarshall on Fri Feb 26, 2010 3:48 am

ekolguy,

Sorry for the long delay. Yes, I used the files you posted, and it wasn't working right.

Since 1.3 came out, it works perfectly though... not sure what was wrong.

Anyway, thanks for the great highlighting and themes!
tmarshall
 
Posts: 2
Joined: Sat Jan 02, 2010 5:47 am

Re: Django support and related themes

Postby ilya on Tue Jun 29, 2010 7:51 pm

Maybe someone can help, how to do correct syntax highlighting for Django template tags in the CSS files (css templates)? I use Django templates to dynamically create CSS as well as for HTML.
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests