package Ġcom . github . iz hang zhi hao . rain bow . br ackets . component Ċ Ċ import Ġcom . github . iz hang zhi hao . rain bow . br ackets . settings . Rain bow Settings Ċ import Ġcom . intellij . ide . plugins . Ide a Plugin Descriptor Ċ import Ġcom . intellij . ide . plugins . PluginManager Ċ import Ġcom . intellij . openapi . application . Application Manager Ċ import Ġcom . intellij . openapi . components . Application Component Ċ import Ġcom . intellij . openapi . editor . colors . Editor Colors Manager Ċ import Ġcom . intellij . openapi . editor . colors . Text Attributes Key . createText Attributes Key Ċ import Ġcom . intellij . openapi . editor . markup . Text Attributes Ċ import Ġcom . intellij . openapi . extensions . Plugin Id Ċ Ċ class ĠR ain bow Component Ġ: ĠApplication Component Ġ{ ĊĠĠĠ Ġvar Ġupdated : ĠBoolean Ġ= Ġfalse ĊĊĠĠĠ Ġoverride Ġfun Ġinit Component () Ġ{ ĊĠĠĠĠĠĠĠ Ġupdated Ġ= Ġget Plugin ()?. version Ġ!= ĠR ain bow Settings . instance . version ĊĠĠĠĠĠĠĠ Ġif Ġ( updated ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR ain bow Settings . instance . version Ġ= Ġget Plugin ()?. version ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġif Ġ(! Rain bow Settings . instance . is Rain bow ify HTML Inside JS ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠEditor Colors Manager . getInstance (). global Scheme . set Attributes ( createText Attributes Key (" HTML _ CODE "), ĠText Attributes ()) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR ain bow Settings . instance . is Rain bow ify HTML Inside JS Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġinstance : ĠR ain bow Component ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget () Ġ= ĠApplication Manager . getApplication (). getComponent ( Rain bow Component :: class . java ) ĊĊĠĠĠĠĠĠĠ Ġprivate Ġfun Ġget Plugin (): ĠIde a Plugin Descriptor ? Ġ= ĠPlugin Manager . get Plugin ( Plugin Id . getId (" iz hang zhi hao . rain bow . br ackets ")) ĊĠĠĠ Ġ} Ċ }