Sweyla's Color Theme Generator

Customize syntax highlighting for TextMate / Emacs / Vim

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 for:
If you like this, please check out our innovative Mac applications Branch Designer and Icon Maker.