begin var funcs := ReadLines('Документация.pas').Where(s->s.startswith('function')).Select(s->s.Replace('<','<').Replace('>','>')); funcs := funcs.Select(s->s.Replace('<','<').Replace('>','>')).Select(s->s.Insert(8,'').Insert(0,'')); var comments := ReadLines('Документация.pas').Where(s->s.startswith('///')).Select(s->s.Remove(0,4)); comments := comments.Select(s->begin s := Trim(s); if s[s.Length]<>'.' then s += '.'; Result := s; end); var z := funcs.Zip(comments,(f,c)->''#13#10''+f+''+NewLine+'
'+'      '+c+#13#10''); z := ''+z+'
'; WriteAllLines('a.html',z); end.