anchor.diff:      SLexer:= Frame.LexerNameAtPos(Ed, Point(Caret.PosX, Caret.PosY));
       if SLexer='' then exit;
   
  -    IsHtml:= UiOps.AutocompleteHtml and SRegexMatchesString(SLexer, UiOps.AutocompleteHtml_Lexers, false);
  -    IsCss:= UiOps.AutocompleteCss and SRegexMatchesString(SLexer, UiOps.AutocompleteCss_Lexers, false);
  -    IsAcpFiles:= true;
  +    bNeedHtml:= UiOps.AutocompleteHtml and SRegexMatchesString(SLexer, UiOps.AutocompleteHtml_Lexers, false);
  +    bNeedCss:= UiOps.AutocompleteCss and SRegexMatchesString(SLexer, UiOps.AutocompleteCss_Lexers, false);
  +    bNeedAcp:= true;
   
       CompletionOpsCss.FilenameCssList:= AppDir_DataAutocompleteSpec+DirectorySeparator+'css_list.ini';
       CompletionOpsCss.FilenameCssColors:= AppDir_DataAutocompleteSpec+DirectorySeparator+'css_colors.ini';
  
positive.code: var
    Frame: TEditorFrame;
    SLexer: string;
    IsCss, IsHtml, IsCaseSens, IsAcpFiles: boolean;
    Caret: TATCaretItem;
    bWithLexer: boolean;
  begin
  
negative.code: 
      //allow autocompletion with multi-carets only in HTML
      if Ed.Carets.Count>1 then
        if not bNeedHtml then
        begin
          MsgStatus(msgCannotAutocompleteMultiCarets);
          exit;
  