Share this on Facebook! Tweet this! Bookmark with Delicious!

Inspiration

Color Theme Generator

Preview language: Python, Ruby, C++, HTML

Sweyla's Twitter feed

Vastly improved exporting to Vim for the color theme generator. http://inspiration.sweyla.com/code/

Apr 12

Just launched our color theme generator for TextMate/Emacs/Vim! Check it out: http://inspiration.sweyla.com/code/

Mar 23

from django.http import HttpResponse
import re

# Generate color themes for your favorite text editor
class MyClass(object):
    def __init__(self, *args, **kwargs):
        self.x = 10
        
    def open(self, x, y):
        return open('filename%d_%d' % (x, y))
        
# Currently supports TextMate, Vim and Emacs
@decorator(x="Test")
def article(request, url):
    try:
        article = Article.objects.get(url=url)
    except:
        raise Http404

    # This example demonstrates how Python code will look
    context = {
        'article': article,
        'title': article.title,
    }
    return render_to_response('codeapp/article.html', context)
Download theme as: