Tuesday 2 November 2010

Preparing tagged code for use with syntax highlighter

In my last two posts, this has helped me upload my code. I have just been copying the output directly into the <pre> tags and it seems to work well. In the example below, the cisco_router_checker.php is the name of the file I wish to convert
 cat cisco_router_checker.php | sed s'/</\&lt;/g'

I could be missing something really obvious here, so if there is a better way of doing it please let me know!

No comments:

Post a Comment