From the monthly archives:

December 2008

SyntaxHighlighter plugin for Wordpress

December 28, 2008

It has only been years, but I finally decided to install a syntax highlighter plugin for this blog. A quick search pointed me to SyntaxHighlighter 1.1.1., downloaded it, unzipped into the plugin directory, and activated it. Took all of 2 minutes. Should have done this earlier !
How watch out for some useful code samples in [...]

Read the full article →

Fix Python source code to use spaces instead of tabs

December 7, 2008

What if someone gave you a Python source file that is indented using tabs? If you are using emacs, the following will let you convert it back to using spaces:
# first set the buffer tab width to 4 (or whatever you like)
M-x set-variable <return> tab-width < return> 4
# then mark the entire file
C-x h
# do [...]

Read the full article →