Does Code highlight plugin work on answers, or only questions?

Viewed 355

I just installed the code highlight plugin to our local Answer installation, expecting that highlighting would enable for both questions and answers. But, it seems that it is only applying the code highlighting to question blocks, not to answer blocks.

Is this the expected behavior, a bug, or some misunderstanding or misconfiguration on my end?

2 Answers

After local testing, both questions and answers support code highlighting, as shown below:
image.png

Example:

console.log('Hello Answer');

Answer version: 1.4.2

I hope to provide more information to troubleshoot this issue.

I had a similar problem where code highlighting would show up in questions but not answers. I noticed that if you sort answers by Newest or Oldest, suddenly highlighting comes back.

I went to Admin -> Plugins -> Code Highlight and I tried selecting a different theme and that immediately fixed the issue. It seems this bug only affects certain themes.

This was on Answer Version: 2.0.0