Is there a way of setting SynEdit LineState? lazarus / 69-SynEdit ---------------------------------------------------------------------- Pascal · 2015-12-14 11:57 Hello, is there a way of setting the line state (sfModified, sfSaved)? I want to mark all lines which where changed since last svn checkin and not only those in the current edit session. Pascal ---------------------------------------------------------------------- x2nie · 2015-12-14 13:23 Yes. 1. create a new gutter to do that 2. add that gutter to SynEdit. in english: 1. You need to inherit TSynGutterPartBase. let's name it TSynGutterSVNChanges in this class, your chance is override method "Paint" What you should check? Well, you might learn & reimplement TSynGutterChanges (SynGutterChanges.pas) 2. every SynEdit has 2 place to put new gutter: the left side and the right one. (Gutter & RightGutter) in TForm1.Create, add this line: 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 TSynGutterSVNChanges.Create(S.RightGutter.Parts); I wish it help. ---------------------------------------------------------------------- Martin_fr · 2015-12-14 14:59 I am not sure the original linestate will help. Because even if you set it to "modified", then it will become "saved" when the user saves. If "saved" is the state you are after, then maybe.... You need to inherhit SynEdit. 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 TSynEditStringList(SynEdit.TextBuffer).MarkModified(from, to);TSynEditStringList(SynEdit.TextBuffer).MarkSaved(); Also this is very internal and undocumented. While not likely, it is possible that it changes. (But then some other way will be introduced). Creating a public accessors can be discussed. ---------------------------------------------------------------------- Pascal · 2015-12-14 15:21 Thanks, saved is the state i want to show so this will be okay for me. I will try later. Pascal