Show Source Code On Your Website With SyntaxHighlighter

Show Source Code On Your Website With SyntaxHighlighter Posted January 16, 2009 @ 10:52am by Phil

More and more I have been seeing awesome looking source code scripts on websites around the internet. I did some "investigation" and found that the majority was using SyntaxHighlighter by Alex Gorbatchev. In the future I will probably need something to display my source so I decided to added it to my site. Installation was very simple except for a snag which is fixed now. Here is a taste of what it looks like:

<?php
  function SyntaxHighlighter ()
  {
    echo "SyntaxHighlighter is awesome!";
  }

  SyntaxHighlighter();
?>

Download Source: sh_demo.php

Enjoy!

Tags: Tools, Webmasters Tips