Sign in Join
Wiki copytemporary

fpwebview: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## About
22
33**fpwebview** is Free Pascal binding for [webview](https://github.com/webview/webview), the cross-platform library that links with gtk-webkit2 on Linux, Cocoa/WebKit on macOS and Edge on Windows 10 for building desktop hybrid GUI+web applications.
44
55Supporting shared library, dylib, DLL and import library files for x86_64 (Linux, macOS, Windows), i386 (Windows) and aarch64 (macOS) are bundled.
66
77## Getting started
88
99**Linux**
1010
11-`% git clone `[`https://github.com/PierceNg/fpwebview`](https://github.com/PierceNg/fpwebview)\
12-`% cd fpwebview/demo/browser_cli`\
13-`% ./linbuild.sh`\
14-`<output>`\
15-`% ./linrun.sh`
11+```text
12+% git clone https://github.com/PierceNg/fpwebview
13+% cd fpwebview/demo/browser_cli
14+% ./linbuild.sh
15+<output>
16+% ./linrun.sh
17+```
1618
1719**macOS**
1820
19-`% git clone `[`https://github.com/PierceNg/fpwebview`](https://github.com/PierceNg/fpwebview)\
20-`% cd fpwebview/demo/browser_cli`\
21-`% ./macbuild.sh`\
22-`<output>`\
23-`% ./macrun.sh`
21+```text
22+% git clone https://github.com/PierceNg/fpwebview
23+% cd fpwebview/demo/browser_cli
24+% ./macbuild.sh
25+<output>
26+% ./macrun.sh
27+```
2428
2529**Windows**
2630
27-`C:\> git clone `[`https://github.com/PierceNg/fpwebview`](https://github.com/PierceNg/fpwebview)\
28-`C:\> cd fpwebview\demo\browser_cli`\
29-`C:\fpwebview\demo\browser_cli> winbuild.bat`\
30-`<output>`\
31-`C:\fpwebview\demo\browser_cli> winrun.bat`
31+```text
32+C:\> git clone https://github.com/PierceNg/fpwebview
33+C:\> cd fpwebview\demo\browser_cli
34+C:\fpwebview\demo\browser_cli> winbuild.bat
35+<output>
36+C:\fpwebview\demo\browser_cli> winrun.bat
37+```
3238
3339## Demo program
3440
3541Here's a simple Pascal program that uses fpwebview to implement a web browser.
3642
3743``` pascal
3844program browser_cli;
3945
4046{$linklib libwebview}
4147
4248uses
4349 {$ifdef unix}cthreads,{$endif}
4450 math,
4551 webview;
4652
4753var
4854 w: PWebView;
4955
5056begin
5157 { Set math masks. libwebview throws at least one of these from somewhere deep inside. }
5258 SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);
5359
5460 writeln('Hello, webview, from Pascal!');
5561 w := webview_create(WebView_DevTools, nil);
5662 webview_set_size(w, 1024, 768, WebView_Hint_None);
5763 webview_set_title(w, PAnsiChar('WebView Free Pascal'));
5864 webview_navigate(w, PAnsiChar('https://www.freepascal.org/'));
5965 webview_run(w);
6066 webview_destroy(w);
6167 writeln('Goodbye, webview.');
6268end.
6369```
6470
6571## License
6672
6773The code is under MIT license, with following exception:
6874
6975- Microsoft's WebView2Loader.dll is distributed as per LICENSE.Microsoft.
7076
7177## Download
7278
7379[GitHub repo](https://github.com/PierceNg/fpwebview/)
7480
7581---
7682*From the Free Pascal wiki, page "fpwebview", as it stood on 2024-04-06 after a change by PierceNg, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history