The WMD (or possibly Prettify) does not support the dot (.) character for elements, despite it being part of the XML Specification. This comes up on StackOverflow with XAML related questions.

Below is an example of the rendering of an element and attribute, both with a "." in their name. Notice that ".suffix" is coloured incorrectly.

<prefix.suffix />

(As a new user on this site I cannot mark this question as 'xml' or 'xaml', as was my intention)

  • 1
    I suspect this is due to Prettify, not WMD. I could be wrong though. – Jon Skeet Jul 23 '09 at 10:05
  • Good call - I've updated the question – Richard Szalay Jul 23 '09 at 11:00
  • @Richard - I've added the 'xml' tag for you. – ChrisF Jul 23 '09 at 11:17

The code tag has never been intended to understand or support all languages. It does a good job on some, and some have problems. Like VB, Perl (see here). You can find many request when searching the syntax-highlighting tag.

As it is Prettify used, feel free to contact the project.


Fixed at revision 93 of prettify.js: http://code.google.com/p/google-code-prettify/source/diff?spec=svn93&r=93&format=side&path=/trunk/src/prettify.js


We just deployed the latest trunk of prettify.js ; revision 83


Not the answer you're looking for? Browse other questions tagged .