title: How to make Doxygen do syntax highlighting in @code containing XML fragments?
body: <p>I'm documenting a software library that manipulates an XML data format. I'd like to be able to write examples of XML in the documentation, and the natural way to do that would be</p>
  
  <pre><code>@code{.xml}
  ... xml here ...
  @endcode
  </code></pre>
  
  <p>except that Doxygen does not do syntax highlighting on the contents like it does for other content such as C++.  (I've tried <code>.html</code> instead of <code>.xml</code> in there too, in case Doxygen supported HTML but not XML, but Doxygen doesn't seem to recognize either one.)</p>
  
  <p>Does anyone have any suggestions for how to achieve syntax highlighting for XML code fragments?</p>
  
  <p><s>(And while on the topic, where can I find a list of the languages that Doxygen <em>does</em> recognize and highlight in <code>@code</code>/<code>@endcode</code> blocks?  I have not found it in the Doxygen manual so far.)</s> Assuming that Doxygen can only do syntax highlighting for the languages it can parse (which are listed for the variable EXTENSION_MAPPING, as pointed out by user "albert" in the comments below), then this implies the need for some external preprocessing.  Does anyone have suggestions for a clever way to do this?</p>