I was thinking to do some gamesitescript templating tutorial, so I search for a code highlighting plugin better than default code tag and I found several plugins but I encounter some compatibility issues with wordpress 2.7. One plugin standout from the rest, and works great with wordpress 2.7. The plugin I'm referring to is FV Code Highlighter by Frank Verhoeven.
FV Code Highlighter works very similar to most the other syntax highlighting scripts, but I like how the plugin uses the default dreamweaver tag color and the background color.
As of the moment, the plugin is in early stage of development and only support the following programming language PHP, HTML, CSS and XML.
Example
PHP CODE:
<?php
preg_match('@^(?:http:,
"http:, $matches);
$host = $matches[1];
preg_match('/[^.]+\.[^.]+$/', $host, $matches);
echo "domain name is: {$matches[0]}\n";
?>
CSS CODE:
@import url("style.css");
h2, .eligio {
display: block;
font-size: 13px;
color: #000;
padding: 18px 10px 17px 10px;
line-height: 18px;
border: 1px solid #e2e2e2;
text-align: left;
overflow: auto;
}
@media screen, print {
pre { margin: 0px 10px 10px; }
h1 { font-size: 14px; padding-top: 10px; }
}
Visit FV Code Higlighter
How to enable page comment on Kubrick theme
Thursday, March 19th, 2009Ever wonder why you can't seem to enable the comment function on your pages even the enable comment box is ticked? It's because the comment function was removed on the latest Kubrick theme. Not sure why... but here's a quick fix, you can open
page.phpfile and add the following code:You can add the comment function before the
edit_post_link():Now time for testing...
Tags: enable page comment, kubrick theme
Posted in Wordpress | 2 Comments »