Syntax highlighting for XML language not working

shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Syntax highlighting for XML language not working

Post by shannonxtreme » Wed May 13, 2020 3:02 pm

I'm using Oxygen 22. I added a codeblock with language-xml as the outputclass, but it isn't doing any highlighting outside of regular monospaced font. Is this intentional or is something wrong?

Radu
Posts: 6980
Joined: Fri Jul 09, 2004 5:18 pm

Re: Syntax highlighting for XML language not working

Post by Radu » Thu May 14, 2020 10:17 am

Hi,

This particular @outputclass attribute value is used by default in the PDF and WebHelp outputs obtained from the DITA content using Oxygen's bundled publishing engine to add syntax highlight to the codeblock.
Were you expecting to also see the coloring in the editor area? If so, after you open the topic in the Author visual editing mode there is a "Styles" drop down toolbar button with a CSS layer named "Codeblock syntax highlight", you can click to enable that layer.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply