Особенности создания математических формул в Web
Copy(List[i],lastTag,CurrentSymbol-lastTag)+
'
Copy(List[i],CurrentSymbol,SeekSymbol-CurrentSymbol+1) +'
lastTag:=SeekSymbol+1; notFound:=false;
end;
inc(SeekSymbol);
end;
end;
if tmpString<>'' then
begin
tmpString:=tmpString+'
List[i]:='
end;
end;
List.SaveToFile(Filename);
list.Free;
End;
end;
procedure TForm1.N6Click(Sender: TObject);
// prosmotr
var list: TStringList;
tmpString: string;
i,CurrentSymbol,SeekSymbol, lastTag: integer;
notFound: boolean;
Begin
list:=TStringList.Create;
for i:=0 to memo1.Lines.Count-1 do list.Add(memo1.lines[i]);
list.Insert(0,'');
list.Add('');
for i:=1 to memo1.Lines.Count do
begin
lastTag:=1; tmpString:='';
for CurrentSymbol:=1 to Length(List[i]) - 9 do
if Copy(List[i], CurrentSymbol, 9) = '' then
begin
tmpString := tmpString+'
Copy(List[i],lastTag,CurrentSymbol-lastTag)+
'
Copy(List[i],CurrentSymbol,SeekSymbol-CurrentSymbol+1) +'
lastTag:=SeekSymbol+1; notFound:=false;
end;
inc(SeekSymbol);
end;
end;
if tmpString<>'' then
begin
tmpString:=tmpString+'
List[i]:='
end;
end;
List.SaveToFile('tmp.html');
list.Free;
ShellExecute(handle, 'open', 'tmp.html', '', '', SW_SHOW);
//winexec('tmp.html', SW_SHOW)
//Form2.showModal;
End;
//end of prosmotr }
procedure TForm1.N8Click(Sender: TObject);
begin
close;
end;
procedure TForm1.N10Click(Sender: TObject);
var tmpMemo: string;
begin
With OpenDialog2 do
if execute then
Begin
begin
tmpMemo:=tmpMemo + '';
Memo1.SelText :=tmpMemo;
end;
End;
end;
procedure TForm1.N11Click(Sender: TObject);
var Href: String;
begin
With OpenDialog3 do
if Execute then
Begin
Href:=Href + ''
+ 'Ссылка' + '';
Memo1.SelText :=Href;
End;
end;
procedure TForm1.N12Click(Sender: TObject);
begin
form4.ShowModal;
end;
end.
Приложение№2.
Скриншоты.

Рис.1

Рис.2

Рис.3

Рис.4