Codeblock coloured syntax for languages VB/VBA missing
Are you missing a feature? Request its implementation here.
-
- Posts: 12
- Joined: Tue Jun 27, 2023 11:00 am
Codeblock coloured syntax for languages VB/VBA missing
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:
David
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.
-
- 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
Could you indicate which version of Oxygen you are using if you are using XML/HTML documents or DITA-XML ones?
Regards,
Julien
-
- 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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service