Open
Description
I'm looking for a way to turn off syntax highlighting inside one specific <xmp>
element. (They're highlighted as C++ by default, which is great, except for this one block, which I want to be plain text.) Things I've tried:
<xmp no-highlight>
$ bin/ubench --benchmark_display_aggregates_only=true --benchmark_repetitions=5 | grep mean
</xmp>
<xmp nohighlight>
$ bin/ubench --benchmark_display_aggregates_only=true --benchmark_repetitions=5 | grep mean
</xmp>
<xmp class="nohighlight">
$ bin/ubench --benchmark_display_aggregates_only=true --benchmark_repetitions=5 | grep mean
</xmp>
<xmp class="no-highlight">
$ bin/ubench --benchmark_display_aggregates_only=true --benchmark_repetitions=5 | grep mean
</xmp>
<div class="nohighlight"><xmp>
$ bin/ubench --benchmark_display_aggregates_only=true --benchmark_repetitions=5 | grep mean
</xmp></div>
My problem is that the rendered HTML invariably does
<pre class="highlight"><c- n>$</c-> <c- n>bin</c->[...]
and if I use <xmp class="nohighlight">
, well, that just produces
<pre class="nohighlight highlight"><c- n>$</c-> <c- n>bin</c->[...]
Also, the current documentation inconsistently mentions both no-highlight
and nohighlight
, exactly once each, so I have no way to tell which is correct even if I understood how to use them.