Question & Answer
Question
How can I disable syntax highlighting in the policy editor?
Answer
To disable syntax highlighting in the policy editor, comment out the for loop in the colorTags() element of the $WAS_HOME/profiles/ImpactProfile/installedApps/ImpactCell/guiserver.ear/netcool.war/
scripts/editor.js file.
For example:
colorTags: function(content) {
if(content == null) {
return content;
}
content = this.uncolorTags(content);
content = this.applyCarriageReturn(content);
//for ( var i = 0; i < Language.length; i++) {
//content = content.replace(Language[i].value, Language[i].styleRule);
//}
return content;
},
To ensure that the change is implemented on the UI, clear the browser cache and refresh the page in the browser.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21421053