If TextMate is running while you perform the update, execute the following:
osascript -e 'tell app "TextMate" to reload bundles'
This is equivalent to selecting Bundles -> Bundle Editor -> Reload Bundles from within TextMate.
Second method: Download this file, unzip it, and double click on Pygments.tmbundle.
By the way, add the following to your stylesheet if you’d like to see a scrollbar when displaying very long lines of code. This adds a nice border as well:
Antonio Cangiano is a Software Developer and AI Evangelist at IBM. He authored Ruby on Rails for Microsoft Developers (Wrox, 2009) and Technical Blogging ( The Pragmatic Bookshelf, 2012, 2019). He is also the Marketing Lead for Cognitive Class, an educational initiative which he helped grow from zero to over 1 Million students. You can follow him on Twitter.
Thanks man. Haven’t looked deeply – just noticed this when I tried to use the bundle for the first time:
Traceback (most recent call last):
File “/tmp/temp_textmate.Rff5iz”, line 6, in
from pygments import highlight
ImportError: No module named pygments
I did install through port. It isn’t your problem…just figured I share something I saw. But, if you do happen to know a quick fix, it’d be appreciated. 😉
Hi Daniel, the repository name is already in lowercase form. In the instructions, I ‘git clone’ in the folder “Pygments.tmbundle” because TextMate bundles conventionally start with a capital letter.
Thanks man. Haven’t looked deeply – just noticed this when I tried to use the bundle for the first time:
Traceback (most recent call last):
File “/tmp/temp_textmate.Rff5iz”, line 6, in
from pygments import highlight
ImportError: No module named pygments
I did install through port. It isn’t your problem…just figured I share something I saw. But, if you do happen to know a quick fix, it’d be appreciated. 😉
My apologies, Kit, it looks like Mac Ports is not going to work. I’ve changed my instructions.
Wouldn’t it be better to name that repository pygments.tmbundle? Maybe that’s a bit late… just a minor convenience, anyway.
Hi Daniel, the repository name is already in lowercase form. In the instructions, I ‘git clone’ in the folder “Pygments.tmbundle” because TextMate bundles conventionally start with a capital letter.