Syntax highlighting not working correctly
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Syntax highlighting not working correctly
Post by shannonxtreme »
Hi, I'm using Oxygen 21.1, build 2019071807
I created a small ditamap with a single markdown file to document an API. I added a code block as follows:
```json
{
element1 [
"key": "value",
"key": value
]
}
```
I tried generating using the default Webhelp Responsive scenario, HTML5 & CSS PDF scenario, and DITA & CSS PDF scenario, but syntax highlighting didn't show up. What am I doing wrong?
I created a small ditamap with a single markdown file to document an API. I added a code block as follows:
```json
{
element1 [
"key": "value",
"key": value
]
}
```
I tried generating using the default Webhelp Responsive scenario, HTML5 & CSS PDF scenario, and DITA & CSS PDF scenario, but syntax highlighting didn't show up. What am I doing wrong?
Re: Syntax highlighting not working correctly
Hi,
You would need to use "language-json", something like this:
This should generate the proper syntax highlight in the outputs.
Regards,
Radu
You would need to use "language-json", something like this:
Code: Select all
```language-json
{
element1 [
"key": "value",
"key": "value"
]
}
```
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 31
- Joined: Fri Aug 24, 2018 4:27 pm
Re: Syntax highlighting not working correctly
Post by shannonxtreme »
That worked great Radu, thanks!
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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