Page 1 of 1
					
				Remove Highlighting from Search Results
				Posted: Wed Aug 24, 2016 8:57 pm
				by pault
				When a user searches on a website generated from WebHelp Responsive, the search terms are highlighted in the result documents. This highlighten can be distracting. Is there a way to turn off the highlighting other than removing ?hl=term from the URL?
Thanks,
Paul
			 
			
					
				Re: Remove Highlighting from Search Results
				Posted: Thu Aug 25, 2016 11:34 am
				by alin
				Hello,
Unfortunately, there is no straight forward option that can be used to turn off the highlighting mechanism.
However, you can achieve this by editing the default template used to generate the WebHelp Responsive output:
- Open the JavaScript file that contains the code responsible for highlighting the search terms:
[Oxygen-18.0-Installation-Directory]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js/wt_default.js
 
-  Change the value for the highlighted variable at line 2 to true.
 
The fix above is valid only if you are using 
DITA-OT 2.x as the current DITA Open Toolkit distribution. If you are using 
DITA-OT 1.8 you should edit the next file:
[Oxygen-18.0-Installation-Directory]/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/js/wt_default.js
You can check which version of DITA Open Toolkit you are using in the 
DITA preferences page (
Main Menu -> Options -> Preferences...).