TextMate is a project mainly written in PYTHON and PERL, it's free.
TextMate Bundles / Themes
To install with Git:
cd ~/Library/Application\ Support/
git clone git://github.com/stevestmartin/TextMate.git
cd TextMate
git submodule init
git submodule update
osascript -e 'tell app "TextMate" to reload bundles