Mam lokalnie zapisany plik html, w moich dokumentach. Czy da się go otworzyć , do edycji, ale w notatniku?
Za pomocą takiego kodu "wyskakuje" mi przeglądarka:
// Edycja pliku TPopupMenu
procedure TForm1.MenuItemEdytujClick(Sender: TObject);
begin
Shellexecute(Handle,'Open',PChar(GetSpecialFolderPath(5)+'\Plik do edycji.html'),nil,nil,0);
end;
function GetSpecialFolderPath(const Folder: Integer): string;
var
Path: array[0..MAX_PATH] of Char;
begin
SHGetSpecialFolderPath(0, Path, Folder , False);
Result := Path;
end;
Program piszę w Lazarusie. W nim używam komponentu IpHtmlPanel.