syntaxhighlighter

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.

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

Categories