Page 1 of 1

Syntax highlighting not working correctly

Posted: Mon Feb 03, 2020 8:12 pm
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?

Re: Syntax highlighting not working correctly

Posted: Tue Feb 04, 2020 11:31 am
by Radu
Hi,

You would need to use "language-json", something like this:

Code: Select all

```language-json
{
element1 [
"key": "value",
"key": "value"
]
}
```
This should generate the proper syntax highlight in the outputs.

Regards,
Radu

Re: Syntax highlighting not working correctly

Posted: Tue Feb 04, 2020 6:27 pm
by shannonxtreme
That worked great Radu, thanks!