Page 1 of 1

Codeblock coloured syntax for languages VB/VBA missing

Posted: Fri May 23, 2025 3:38 pm
by TopSolid
Hello
I need coloured syntax for VB/VBA languages in a codeblock. Provided outputclasses do not support these languages, it's a pity.
How can I do that?
Can I add my own outputclass or customize my CSS? I have tried to code with xpath but it can be very tricky. Honestly, it would be nice to have these 2 very common languages in standard in Oxygen. This is what I need as a result:
image (1).png
Thanks!
David

Re: Codeblock coloured syntax for languages VB/VBA missing

Posted: Fri May 23, 2025 4:52 pm
by julien_lacour
Hello David,

Could you indicate which version of Oxygen you are using if you are using XML/HTML documents or DITA-XML ones?

Regards,
Julien

Re: Codeblock coloured syntax for languages VB/VBA missing

Posted: Mon May 26, 2025 11:53 am
by TopSolid
Hello Julien
I use latest Oxygen 27.1 in a DITA-XML file.
image.png
Thanks

Re: Codeblock coloured syntax for languages VB/VBA missing

Posted: Mon May 26, 2025 1:09 pm
by julien_lacour
Hello David,

I've logged an issue in our tracking system to incorporate syntax highlighting for VB/VBA. I will notify this thread when they will be available.

Code blocks are tokenized within the com.oxygenxml.highlight plugin, located at [OXYGEN_INSTALL_DIR]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.highlight. This plugin wraps keywords, comments, and other elements into separate components that can be customized later using CSS selectors.

To add the languages, you can include them in the plugin configuration file (highlighters\xslthl-config.xml) and then create one or more files to manage the syntax highlighting for each category.

Regards,
Julien