syntaxhighlighter for wordpress
after a long search i found my prefered syntax highlighter plugin for wordpress.
here is a little list of the most used highlighters that can be found at the internet.
- SyntaxHighlighter Evolved
http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/ - Better WordPress Syntax (based on GeSHi)
http://betterwp.net/wordpress-plugins/bwp-syntax/ - WP-Syntax
http://wordpress.org/extend/plugins/wp-syntax/ - SyntaxHighlighter Plus
http://wordpress.org/extend/plugins/syntaxhighlighter-plus/ - SyntaxHighlighter2
http://mohanjith.com/2009/03/syntaxhighlighter2.html
i choose the SyntaxHighlighter Evolved because the plugin does allow XAML code to be added to a post under the language XML and does not let wordpress interpret the <> characters in the added sourcecode.
here is a little example
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
<Grid>
<TextBlock Text="it works" />
</Grid>
</Page>
here are the ugly code change that i mean
<page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options">
<grid>
<textblock Text="it works" />
</grid>
</page>
that’s it
