We’re getting to the point where we want to start writing tutorials on how to extend ShinyMUD to add custom features, and we started by creating a wiki page on our Trac site. We are currently using Trac 0.11.7, on ubuntu 9.10, and it is supposed to work out of the box using Pygments for syntactical highlighting of code posted in the wiki. But, when we look at the wiki page, all of our sample code is lifeless and colorless. We made sure that we had Pygments installed using
sudo apt-get install python-pygments
or
easy_install Pygments
But the colors still weren’t showing up. Finally, we were looking at the examples at trac.edgewall.org and noticed on my machine the colors showed up, but on Surrey’s they didn’t. That’s when we realized that Surrey has AdBlock activated in her browser, and I did not, so it had to be a javascript issue.
It turns out that Trac uses JQuery to handle a lot of it’s UI based features, and when we installed Trac through Ubuntu’s “apt-get install” command JQuery didn’t come with it. Whether it was missing as a requirement, or we missed a step in the setup process, we found ourselves without it, and didn’t know that we needed it . If you don’t already have JQuery installed, the javascript will just fail nicely, and you won’t know what is wrong. The command:
sudo apt-get install libjs-jquery
installed JQuery, and then we had to make sure that Trac had a soft link to it from where we had installed it
sudo ln -s /usr/share/pyshared/trac/htdocs/js/jquery.js /usr/lib/python2.6/dist-packages/trac/htdocs/js
and all of the colors magically worked! see example.


