E-Scribe News : a programmer’s blog

About Me

PBX I'm Paul Bissex, and e-scribe.com is my consulting business. I build web applications using open source software, especially Django. I teach photographers web design and professional skills. In the '90s I did graphic design for newspapers and magazines. Then I wrote technology commentary and reviews for Wired, Salon.com, Chicago Tribune, and lots of little places you've never heard of. Feel free to email me.

Book

Python Web Development with Django I'm co-author of "Python Web Development with Django", an excellent guide to my favorite web framework. Its strong points include an introduction to Python, and better coverage of Django 1.0 than nearly anybody else. Published by Addison-Wesley, it is available from Amazon and your favorite technical bookstore as well.

Colophon

Built using Django, served by Apache and mod_wsgi. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive. The markup engine is Markdown.

Pile o'Tags

Stuff I Use

Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii

Spam Report

At least 67519 pieces of comment spam killed since January 2008, mostly via Akismet.

PHP/HTML enhancements for TextMate

My first little bit of TextMate language grammar hacking: PHP.tmbundle 2.0.1, which has two small enhancements over the stock 2.0:

Enjoy! Feedback is welcome. Thanks to Textmate author Allan Odgaard for helpful answers to my newbie questions on the TextMate mailing list.

Thursday, November 10th, 2005
+
3 comments

Comment from ritesh , later that day

this is good.

Comment from Bonatoc , 2 years later

Thanks a lot !

I found TextMate a little limited when it comes to colorize code, I mean it does not seem as customizable as... Dreamweaver (doh !).
Is there a way to push further your hack and customize the coloring of, let's say <table> tags ?

Comment from Paul , 2 years later

TextMate's bundle features can be pushed *very* far (and do a lot more than syntax coloring). For learning more on this I recommend the [manual][] or the [book][].

Keep in mind that the colorizing has a semantic component, i.e. if you wanted "table" tags to look different you'd have to alter TextMate's HTML language grammar (via the Bundle Editor) to treat them as something other than a regular tag. And then you'd have your own custom grammar that wouldn't integrate any future updates. Probably not worth the effort.

[manual]: http://manual.macromates.com/en/language_grammars
[book]: http://www.pragprog.com/titles/textmate/textmate

Post a comment

Thanks for reading! Please note: Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)