title: How instruct to the Delphi IDE refresh the modified syntax highlight colors using OTA (Open Tools API)?
body: <p>I'm writting a plugin to integrate the <a href="http://code.google.com/p/delphi-ide-theme-editor/" rel="nofollow noreferrer"><code>Delphi IDE Theme Editor</code></a> with the Rad Studio IDE (the current version of this tool run as an external application) so far everything is working fine (see the below image), except the fact which I can't figure out how refresh the selected syntax highlight colors in the  Delphi IDE</p>
  
  <p><img src="https://i.stack.imgur.com/uP8Az.png" alt="enter image description here"></p>
  
  <p>Let me explain, in the standard option to change the syntax highlight colors (Editor Options-> Color) you can customize any element and assign a new foreground and background color, then if you press the <kbd>.   OK  .</kbd> button the IDE apply the changes and the IDE editor windows are updated with new settings. </p>
  
  <p>Currently i can modify and store the new values, but I can't instruct to the Delphi IDE to apply the the new configuration, the changes are only visible if the IDE is restarted.</p>
  
  <p>I searched the ToolsAPI unit and i found the <code>IOTAEditOptions</code>, <code>IOTAHighlighter</code> and <code>IOTAHighlightServices</code> interfaces but none it seems include an option to refresh (reload) the modified setting.</p>
  
  <p>Also I tried unmangle (using tdump) and calling the functions of the coreide1XX.bpl file directly, but this did not work too.</p>
  
  <pre><code>00420B94 17411 1F39 Editcolorpage::TEditorColor::
  00422188 17400 1F3A __fastcall Editcolorpage::TEditorColor::ColorClick(System::TObject *)
  0042174C 17407 1F3B __fastcall Editcolorpage::TEditorColor::ColorSpeedSettingClick(System::TObject *)
  004224BC 17396 1F3C __fastcall Editcolorpage::TEditorColor::DefaultClick(System::TObject *)
  00422414 17397 1F3D __fastcall Editcolorpage::TEditorColor::EditorColorBroadcast(System::TObject *, Winapi::Messages::TMessage&amp;)
  00421584 17409 1F3E __fastcall Editcolorpage::TEditorColor::EditorColorCreate(System::TObject *)
  00421730 17408 1F3F __fastcall Editcolorpage::TEditorColor::EditorColorDestroy(System::TObject *)
  004217B0 17406 1F40 __fastcall Editcolorpage::TEditorColor::ElementListClick(System::TObject *)
  004222E8 17399 1F41 __fastcall Editcolorpage::TEditorColor::FontClick(System::TObject *)
  004225DC 17395 1F42 __fastcall Editcolorpage::TEditorColor::HelpClick(System::TObject *)
  00421AE8 17404 1F43 __fastcall Editcolorpage::TEditorColor::InitLineFlags(const System::DelphiInterface&lt;Toolsapi::IOTAHighlighterPreview&gt;)
  004219B8 17405 1F44 __fastcall Editcolorpage::TEditorColor::InitSamplePane()
  00421BC8 17403 1F45 __fastcall Editcolorpage::TEditorColor::InitSyntaxEditView(const System::DelphiInterface&lt;Toolsapi::IOTAHighlighterPreview&gt;)
  0042262C 17393 1F46 __fastcall Editcolorpage::TEditorColor::LoadHighlightPreviews()
  004225F4 17394 1F47 __fastcall Editcolorpage::TEditorColor::MarkDirty()
  004220E4 17401 1F48 __fastcall Editcolorpage::TEditorColor::SampleClick(System::TObject *)
  00422080 17402 1F49 __fastcall Editcolorpage::TEditorColor::SetColorSpeedSetting(Vedopts::TColorSpeedSetting)
  0042238C 17398 1F4A __fastcall Editcolorpage::TEditorColor::UpdateSamplePane()
  00422814 17392 1F4B __fastcall Editcolorpage::TEditorColor::tbsetPreviewsChange(System::TObject *, int, bool&amp;)
  004AA8D4 17390 1F4C __fastcall Editcolorpage::initialization()
  00423C38 17413 1F4D __fastcall Editdisplaypage::Finalization()
  </code></pre>
  
  <p><code>How I can instruct to the Delphi IDE refresh the modified syntax highlight colors using OTA (Open Tools API)?</code></p>
  
  <p>Let me know if you need more info or if the question is not clear.</p>