Just wanted to give a quick review of this software. WP-Syntax is a plug in for Wordpress. I use it to format code within my blog. This software is pretty nice and integrates smoothly. It uses the GeSHi highlighting engine to perform the operation on <pre> tagged content. Usage is as follows:
<pre lang="language">Put your code here</pre>
Also, don’t forget to add the extra formatting styles to your stylesheet for some extra pizazz. Just incase you haven’t yet here they are again (these styles and the plugin were written by Ryan Mcgeary:
.wp_syntax { color: #100;background-color: #f9f9f9; border: 1px solid silver; margin: 0 0 1.5em 0; overflow: auto;} /* IE FIX */ .wp_syntax { overflow-x: auto; overflow-y: hidden; padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0); width: 100%;} .wp_syntax table {border-collapse: collapse;} .wp_syntax div, .wp_syntax td {vertical-align: top;padding: 2px 4px;} .wp_syntax .line_numbers {text-align: right;background-color: #def; color: gray;overflow: visible;} /* potential overrides for other styles */ .wp_syntax pre {margin: 0;width: auto;float: none;clear: none;overflow: visible;}



















0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment