anchor.diff:  {$R *.lfm}
   
   const
  -  cSavLexer       = '/lexer';
  -  cSavEnc         = '/enc';
  -  cSavTop         = '/top';
  -  cSavWrap        = '/wrap_mode';
  -  cSavRO          = '/ro';
  -  cSavRuler       = '/ruler';
  -  cSavMinimap     = '/minimap';
  -  cSavTabSize     = '/tab_size';
  -  cSavTabSpace    = '/tab_spaces';
  -  cSavNums        = '/nums';
  -  cSavUnpri       = '/unprinted_show';
  -  cSavUnpriSp     = '/unprinted_spaces';
  -  cSavUnpriEnd    = '/unprinted_ends';
  -  cSavUnpriEndDet = '/unprinted_end_details';
  -  cSavCaret       = '/caret';
  -  cSavColor       = '/color';
  -  cSavBookmark    = '/bm';
  -  cSavFold        = '/folded';
  +  cHistory_Lexer       = '/lexer';
  +  cHistory_Enc         = '/enc';
  +  cHistory_Top         = '/top';
  +  cHistory_Wrap        = '/wrap_mode';
  +  cHistory_RO          = '/ro';
  +  cHistory_Ruler       = '/ruler';
  +  cHistory_Minimap     = '/minimap';
  +  cHistory_TabSize     = '/tab_size';
  +  cHistory_TabSpace    = '/tab_spaces';
  +  cHistory_Nums        = '/nums';
  +  cHistory_Unpri       = '/unprinted_show';
  +  cHistory_UnpriSp     = '/unprinted_spaces';
  +  cHistory_UnpriEnd    = '/unprinted_ends';
  +  cHistory_UnpriEndDet = '/unprinted_end_details';
  +  cHistory_Caret       = '/caret';
  +  cHistory_Color       = '/color';
  +  cHistory_Bookmark    = '/bm';
  +  cHistory_Fold        = '/folded';
   
   var
     FLastTabId: integer = 0;
  
positive.code:   items: TStringlist;
  begin
    //file not listed?
    if c.GetValue(path+cSavTop, -1)<0 then exit;
  
    //lexer
    if Lexer=nil then str0:= '' else str0:= Lexer.LexerName;
    str:= c.GetValue(path+cSavLexer, str0);
    if str='PHP' then
      str:= 'HTML'; //Cud 1.14: HTML lexer handles php files
    if (str<>'') and (str<>str0) then
  
negative.code:         Editor.LoadFromFile(FileName);
    end;
  
    TabColor:= StringToColorDef(c.GetValue(path+cHistory_Color, ''), clNone);
  
    ReadOnly:= c.GetValue(path+cHistory_RO, ReadOnly);
    Editor.OptWrapMode:= TATSynWrapMode(c.GetValue(path+cHistory_Wrap, Ord(Editor.OptWrapMode)));
    Editor.OptRulerVisible:= c.GetValue(path+cHistory_Ruler, Editor.OptRulerVisible);
    Editor.OptMinimapVisible:= c.GetValue(path+cHistory_Minimap, Editor.OptMinimapVisible);
    Editor.OptTabSize:= c.GetValue(path+cHistory_TabSize, Editor.OptTabSize);
    Editor.OptTabSpaces:= c.GetValue(path+cHistory_TabSpace, Editor.OptTabSpaces);
    Editor.OptUnprintedVisible:= c.GetValue(path+cHistory_Unpri, Editor.OptUnprintedVisible);
    Editor.OptUnprintedSpaces:= c.GetValue(path+cHistory_UnpriSp, Editor.OptUnprintedSpaces);
    Editor.OptUnprintedEnds:= c.GetValue(path+cHistory_UnpriEnd, Editor.OptUnprintedEnds);
    Editor.OptUnprintedEndsDetails:= c.GetValue(path+cHistory_UnpriEndDet, Editor.OptUnprintedEndsDetails);
  
    if Assigned(Lexer) then
    begin
      //this seems ok: works even for open-file via cmdline
      FFoldTodo:= c.GetValue(path+cHistory_Fold, '');
      FTopLineTodo:= c.GetValue(path+cHistory_Top, 0); //must use, not Ed.LineTop
    end
    else
    begin
  