SynEdit highlighter attributes dynamically changing lazarus / 31-LCL ---------------------------------------------------------------------- staratel20 · 2016-03-21 08:00 Good day. Analyze the code of [beautiful] example code '...\SynEdit\NewHighlighterTutorial\' I successfully write my own highlighter. But for my goal I need to dynamically change attributes of ONE highlighter (including Attribute.Name and Attribute.Caption). Fist I think it's very easy - I simple write something like: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i MyHighlighter.Clear; and again add needed attributes. But ... no method 'Clear' in TSynCustomHighlighter class. I try to modify unit SynEditHighlighter and add it method Clear: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TSynCustomHighlighter.Clear;var  i:integer;begin  i:=0;  while(i