E-Scribe News : a programmer’s blog

About Me

PBX My name is Paul Bissex, and e-scribe.com is my consulting business. I build web applications using as much open source software as possible. From September to June I teach web design and other important non-photographic professional skills to photographers. In the '90s I wrote technology commentary and reviews for magazines, newspapers, and web publications, including Wired, Salon.com, FamilyPC, the late lamented Web Review, and the Chicago Tribune. Feel free to email me.

Colophon

This runs on Django, served by Apache and mod_python. 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.

The Book

Book cover I'm co-author of "Python Web Development with Django", an excellent guide to my favorite web framework. Published by Addison-Wesley in October 2008, it is available from Amazon and your favorite technical bookstore as well. Click on the book title above to learn more.

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 45536 pieces of comment spam killed since January 12th, 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.

Post a comment

Comments use Markdown syntax. Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)