513 513 <pre>
514 514 if( zMime==0 ){
515 515 @ <pre name="code" class="c">
516 516 @ %h(blob_str(&content))
517 517 @ </pre>
518 518 </pre>
519 519 </p>
520 +<p>
521 +If you only expect one language to be highlighted on a page, then you can implement the above without changing the Fossil code. Just use JQuery in the header like this (this example is for Visual Basic):
522 +<pre>
523 +<script src="http://code.jquery.com/jquery-1.4.4.js"></script>
524 +</pre>
525 +and in the footer like this:
526 +<pre>
527 +<script>$("pre:last").addClass("brush: vb");</script>
528 +<script>
529 +$(document).ready(function() {SyntaxHighlighter.all()});
530 +</script>
531 +</pre>
532 +</p>
520 533 <h3>Discussion</h3>
521 534 The Javascript solution requires a minimum to be fully supported by Fossil. Of course my litte change only applies for C/C++ files. But only little more work needs to be done to get the extension of the file a guess the file type.
522 535
523 536 The pipe solution would also be nice but would probably need some more work than this little patch.
524 537
525 538 <h2><a name="win32dev">How to prepare your Windows XP Fossil development Environment</a></h2>
526 539 <h4>MinGW+NSIS/WiX</h4>