public string FormatString(DocumentLocation insertPosition, string code)
 {
     return(textEditorImpl.FormatString(LocationToOffset(insertPosition), code));
 }