You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,11 +67,11 @@ Perl Executing Browser (PEB) is an HTML GUI for [Perl 5](https://www.perl.org/)
67
67
* PEB is useful for both single-page or multi-page applications.
68
68
*[Single file or multiple files, new filename, existing or new directory can be selected by user](#special-urls-for-users).
69
69
Their full paths can be displayed in the calling local page and they can be supplied to local Perl scripts.
70
-
*[Browser functions are accessible from special URLs](#special-urls-for-users).
70
+
*[Browser functions are accessible from special URLs](#browser-functions).
71
71
*[Any icon can be displayed on windows and message boxes](#icon).
72
72
*[Optional context menu translation using JavaScript ](#custom-or-translated-context-menu-labels).
73
73
*[Optional translation of the JavaScript *Alert*, *Confirm* and *Prompt* dialog boxes using JavaScript](#custom-or-translated-labels-for-javascript-dialog-boxes).
74
-
*[Optional warning for unsaved data in HTML forms before closing a window to prevent accidental data loss](#checking-for-unsaved-user-input-before-closing-a-window).
74
+
*[Optional warning for unsaved data in HTML forms before closing a window to prevent accidental data loss](#warning-for-unsaved-user-input-before-closing-a-window).
75
75
* Cross-site scripting is disabled for all web and local pages.
76
76
77
77
**Development goodies:**
@@ -231,8 +231,8 @@ They have two functions:
231
231
}
232
232
```
233
233
234
-
***Checking for unsaved user input before closing a window:**
PEB users can enter a lot of data in local HTML forms and it is often important to safeguard this information from accidental deletion if PEB window is closed without first saving the user data. When user starts closing a PEB window, the browser checks for any unsaved data in all forms of the HTML page that is going to be closed. This is achieved using internal JavaScript code compiled in the resources of the browser binary.
237
237
238
238
If any unsaved data is detected, PEB tries to determine what kind of JavaScript routine has to be displayed to warn the user and ask for final confirmation. Two types of JavaScript warning routines are possible in this scenario: **synchronous** and **asynchronous**.
@@ -352,6 +352,7 @@ They have two functions:
352
352
Please note that if you choose to create a new directory, it will be created immediately by PEB.
353
353
It will be already existing when passed to a local Perl script.
***Close current window:**```http://local-pseudodomain/close-window.function```
366
-
Please note that the window from where this URL was called will be closed immediately without any check for unsaved user data in HTML forms. Window-closing URL was implememented to make possible asynchronous window close confirmation JavaScript routines - see section *Settings*, paragraph [Checking for unsaved user input before closing a window](#checking-for-unsaved-user-input-before-closing-a-window).
367
+
Please note that the window from where this URL was called will be closed immediately without any check for unsaved user data in HTML forms. Window-closing URL was implememented to enable asynchronous JavaScript routines for window closing confirmation - see section *Settings*, paragraph [Warning for unsaved user input before closing a window](#warning-for-unsaved-user-input-before-closing-a-window).
367
368
368
369
## HTML Interface for the Perl Debugger
369
370
Any Perl script can be selected for debugging in an embedded HTML user interface. The debugger output is displayed together with the syntax highlighted source code of the debugged script and its modules. Syntax highlighting is achieved using [Syntax::Highlight::Engine::Kate](https://metacpan.org/release/Syntax-Highlight-Engine-Kate) CPAN module by Hans Jeuken and Gábor Szabó. Interaction with the built-in Perl debugger is an idea proposed by Valcho Nedelchev and provoked by the scarcity of graphical frontends for the Perl debugger.
@@ -378,9 +379,9 @@ They have two functions:
378
379
379
380
The following special URLs for interaction with the Perl debugger are implemented:
The selected file will be loaded in the Perl debugger, but no command will be automatically issued. Any command can be given later by buttons or by typing it in an input box inside the HTML user interface of the debugger.
0 commit comments