Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to syntax highlight XML in reStructuredTest/Sphinx

What is the suggested way of adding xml in Sphinx/reST so that it gets properly displayed in the generated doc.

like image 421
Aravind Yarram Avatar asked Oct 10 '22 11:10

Aravind Yarram


1 Answers

Figured it out myself. We should use the code-block directive with 'xml' as the value

like image 71
Aravind Yarram Avatar answered Oct 13 '22 12:10

Aravind Yarram