7

See this question:

How can I make Doxygen not document my include guard?

I've used three-backticks, newline, then <!-- language: lang-none -->. And - C-style comments cause a graying-out of the rest of the text.

Why, and how do I fix it?

1 Answer 1

9

That's the HTML-specific formatting. It would work if your code block looked like:

<!-- language: language-here  -->

    foo();

You use code fences, which means you need to use a different syntax. Specifically:

```language-here
foo();
```

This is also outlined in the code fence announcement over on MSE. Not all languages are supported though - here's a list of those that are.

3
  • But, @Zoe, that doesn't work either. Just have a look at the result of your edit.
    – einpoklum
    Commented May 17, 2019 at 20:20
  • Only one of your code blocks attempted to use language-none, so I only fixed it on that one. And it renders fine for me Commented May 17, 2019 at 20:22
  • My bad, I used the language setting on the wrong block.
    – einpoklum
    Commented May 17, 2019 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .