This is an example using PEAR::Text_Highlighter. If the code below is not highlighted, please
install Text_Highlighter. You can find more information on Text_Highlighter at
http://www.sitepoint.com/article/highlight-source-code-php.
Text_Highlighter supports several languages, like CSS, XML, PHP, C,...
.hl-main {
background-color: White;
}
.hl-gutter {
background-color: #999999;
color: White
}
.hl-table {
font-family: courier;
font-size: 12px;
border: solid 1px Lightgrey;
}
It can be even used for unified diffs.
--- Frontend-original.php 2005-04-06 16:07:55.800695658 +0200
+++ Frontend.php 2005-04-06 16:22:14.001163688 +0200
@@ -390,7 +390,8 @@
} else {
echo '';
foreach ($this->getPackageLatestReleases($pkg['package']) as $state => $release) {
- echo '- ' .$release['version']. ' (' .$state. ') was release on ' .$release['date']. '
';
+ echo '- ' .$release['version']. ' (' .$state. ') was released on ' .$release['date']. '
';
}
echo '
';
}
@@ -852,7 +847,8 @@
uri)) {
+ $uri = $maintainer->uri;
+ if (!empty($uri)) {
?>
Website
|