IBM Support

IBM Tivoli Netcool/Impact: Disabling syntax highlighting in the policy editor

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.

[{"Product":{"code":"SSSHYH","label":"Tivoli Netcool\/Impact"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Netcool\/Impact","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"5.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21421053