Skip to content

Instantly share code, notes, and snippets.

Index: code_escape.plugin.php
===================================================================
--- code_escape.plugin.php (revision 3226)
+++ code_escape.plugin.php (working copy)
@@ -4,7 +4,7 @@
public function filter_post_content_out ( $content, $post ) {
- $content = preg_replace_callback('/<code>(.*?)<\/code>/s', array( 'self', 'escape_code' ), $content);
+ $content = preg_replace_callback('/<code class="prettyprint">(.*?)<\/code>/s', array( 'self', 'escape_code' ), $content);
$ svn checkout http://svn.habariproject.org/habari-extras/plugins/google-code-prettify/trunk google-code-prettify
$ svn checkout http://svn.habariproject.org/habari-extras/plugins/code_escape/trunk code_escape
mysql> DELETE from habari__options WHERE name = "active_plugins";
# wget -i /tmp/apt_list_new
# apt-get -qq --print-uris dist-upgrade >> /tmp/apt_list
# awk '{gsub("\x27", "", $0); print $1}' < /tmp/apt_list > /tmp/apt_list_new
# yum install xbindkeys xdotool
# dpkg-reconfigure fontconfig-config
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
enabled=1
gpgcheck=0
# rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
# rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm