PlainHTML tutorial part 3 - testing things made in PlainHTML
Filed Under (plainhtml, tutorials) by beerwin on 28-05-2009
Tagged Under : plainhtml, tutorials
PlainHTML has a well done testing funcion built in. You can either simply preview your html pages with the internal preview, or test your php stuff on a locally installed web server. This second one is able to catch php error log information and display a list of errors in your HTML Validator Message Pane, and highlight lines with errors.
1. Previewing with the internal preview function:
Access: The eye icon on any toolbar you may find it (Standard and Quick Tools), View menu -> Internal Preview item, or just by pressing F9
This preview is only for static HTML pages and previews the currently edited file in it’s current context ONLY. The internal preview window has several functions on it’s toolbar:
- Standard browser functions: (address bar, back,forward,home,stop)
- A screenshot function (You have to save your screenshot if you want to get your preview window back, otherwise you have to restart PlainHTML (this is a bug, not yet fixed))
- Screen resolution buttons: you can see, how your page will look on different screen resolutions
2. Previewing from localhost (supports Apache any version ONLY)
First of all, you must have an Apache Web server with PHP support installed (at least)
Access (press F12 key, or Preview in default browser (Internet Explorer icon) , or preview with custom browser : View->preview in custom browser ->browser name) )
You can expand the browser list by Tools->customize Browserlist.
First of all, you have to configure the preview function. Go Tools->Options, click the View in Browser tab (this is the default).
Mark the Preview from Localhost checkbox. Select the folder where your server’s Document Root is (usually a htdocs or www folder, but you may have customized it).
It is recommended to use a subdirectory of this document root for testing. You can specify/select it or specify it in the next textbox.
Now, mark the Show PHP Errors checkbox, and select the location of your PHP error log file.
(Custom port selection will be available in version 7)
If you want to test php stuff with multiple dependencies, copy the dependencies to the test folder and overwrite them later, when necessary.



















































