RH2022 - Disable Search Term Highlights
Not sure if this is just a setting I am missing. Is it possible to completely disable the search term highlight feature?
I have several topics that provide blocks of code for users to copy/paste. When accessing these pages from a search result, the code block format is modified by the highlight code which messes up the how the content is copied. This mainly affects blocks of code in a preformatted text <pre> tag that involves separate lines. When copying from the page the highlight feature, it ignores the format and pastes it all as a single line
Example without the Highlight:
<pre>Hello there
This is an example
of some code
</pre>
And this is the format when copying out of the output page without the search result highlight:
Hello there
This is example
of some code
But if you were copying this output from a search result, with the highlight used to highlight the terms in the code example, it comes out as a single line when copying/pasting.
Hello there This is example of some code
I have found a work around by placing the code examples into paragraphs or divs and using line breaks to separate the lines. While this works for small code examples, it would be a pain to have to manually format large code blocks.
I tried using the UI toggle off button on the topic but it just removes the highlight, the format is still bad. If you reload the page without the search involved, the text and code renders and copies properly.
