Tag Archives: WordPress

Escaping WordPress shortcodes

      No Comments on Escaping WordPress shortcodes

With WordPress 2.5 came the WordPress shortcodes, a simple set of functions to create macros to be used in WordPress posts. Quite a few plugins were developed subsequently to enable escaping of those shortcodes. This is necessary because the shortcode parser, as it tries to interprete everything between square brackets, makes it impossible to include a non-interpreted shortcode such as… Read more »

Typesetting formuals with MathJax

      No Comments on Typesetting formuals with MathJax

Most hosting providers don’t have LaTeX packages installed on their servers and installing LaTeX yourself is usually only possible on rootservers, which are quite a bit more expensive (and therefore much less common) than regular hosting plans. However, there is a great project called MathJax, that enables you to display formulas directly inside your wordpress posts without the need to… Read more »

BackUpWordPress plugin produces tarballs containing duplicates

I’m using BackUpWordPress to do regular database and file tree backups of this blog. Unfortunately, there is a nasty bug in this plugin which may cause the tarball to contain every backuped file multiple times (to be precise, every file except the first one will go into the tarball exactly three times). The problem is that the . and ….. Read more »

WordPress myStat plugin breaks rss feed

      1 Comment on WordPress myStat plugin breaks rss feed

I recently installed myStat to keep track of this blog’s rapidly increasing number of readers. Unfortunately, the plugin break the rss feed. The problem is the plugin’s myStat_footer() function, which does not check if the page is a feed before deciding to insert the myStat footer image into the page code. To fix myStat v2.6, locate line 475 in mystat.php… Read more »

SyntaxHighlighter Evolved and line-height

As you probably know, I’m using SyntaxHighlighter Evolved to post syntax-highlighted code. Some people mailed me, that in some of my posted code the underscores are not visible (although copy&paste works). Well, the culprit is the line-height attribute of the SyntaxHighlighter Evolved cascading stylesheet: Simply increasing the line-height from the default 1.1em to 1.21em in wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css did the trick.

Syntax highlighting reloaded

      1 Comment on Syntax highlighting reloaded

Recently (well, yesterday to be exact) I was really sold on a a syntax highlighting plugin for WordPress called WP-Syntax. Basically, I am still. It is still easy to use, looks good and comes with a huge variety of supported languages. But if you ask the WordPress-guys it isn’t first choice. In their FAQ they point you to Alex Gorbatchev’s… Read more »

Syntax highlighting ftw!

      1 Comment on Syntax highlighting ftw!

I just ran into WP-Syntax which is a syntax highlighting plugin for WordPress using GeSHi. It supports a wide range of popular languages (including of course Java!). Examples? Here we go: 1 2 3 4 5 public class Hello { public static void main(String[] args) { System.out.println("Hello world!"); } }public class Hello { public static void main(String[] args) { System.out.println("Hello… Read more »