Codeblock coloured syntax for languages VB/VBA missing

Are you missing a feature? Request its implementation here.
TopSolid
Posts: 12
Joined: Tue Jun 27, 2023 11:00 am

Codeblock coloured syntax for languages VB/VBA missing

Post 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
You do not have the required permissions to view the files attached to this post.
julien_lacour
Posts: 677
Joined: Wed Oct 16, 2019 3:47 pm

Re: Codeblock coloured syntax for languages VB/VBA missing

Post 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
TopSolid
Posts: 12
Joined: Tue Jun 27, 2023 11:00 am

Re: Codeblock coloured syntax for languages VB/VBA missing

Post by TopSolid »

Hello Julien
I use latest Oxygen 27.1 in a DITA-XML file.
image.png
Thanks
You do not have the required permissions to view the files attached to this post.
julien_lacour
Posts: 677
Joined: Wed Oct 16, 2019 3:47 pm

Re: Codeblock coloured syntax for languages VB/VBA missing

Post 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
Post Reply