How to Effectively Show Code Snippets in WordPress Posts
The SyntaxHighlighter Evolved plugin for Wordpress will allow you to show code examples on your WordPress blog. See examples in this post.
[php]
<?php
echo "Hello World";
?>
[/php]
[html]
<html>
<body>
Hello World
</body>
</html>
[/html]
[javascript]
alert('Hello World');
[/javascript]
Example PHP Code Snippet
[php]
<?php
echo "Hello World";
?>
[/php]
Example HTML Code Snippet
[html]
<html>
<body>
Hello World
</body>
</html>
[/html]
Example JavaScript Code Snippet
[javascript]
alert('Hello World');
[/javascript]
Comments