Zikula Network

Get in touch!
 
irc.oftc.net #zikula
 
Share your Knowledge!
 
Follow The Zikulan!
 
GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Subscribe!

Cozi Tricks #1: Syntax Highlighting

As we have extensively upgraded and extended our Cozi recently, I recognized that most of us do use very few features, and might not even be aware what can be done with the beast. I therefore will start a serie of articles about the "hidden secrets of our Cozi" here There will be no special order or weight, I will just write them as they come in my mind.

Personally spoken, I love the style Trac is using Pygments by default to present code in the repository browser view:


1

But taste is a personal matter, and it's actually trivial to completely adapt the style to yours. Simply visit your user profile at http://code.zikula.org/core/prefs/pygments (replace "core" with the name of any other project you work on), and here you are:

2

Now the fun comes in, you can play with the styles offered there, e.g.:

3

If you found your favorite, simply apply. Your code browser will come now with the style you selected:

4

There are even more tweaks, e.g. to set the default style for your project or create your own, but I will leave this for another article.

Enjoy our Cozi, happy hacking!

Greetings, Chris (slam) Hildebrandt


Share This | Print

Trackbacks

(The URL to TrackBack this entry is: http://blog.zikula.org/index.php?module=TrackBack&id=26,1-70). If your blog does not support Trackbacks you can manually add your trackback by using this form.
 
Close

You don't have permission to e-mail this story - please login