Browsers are notorious for rendering HTML pages perfectly even when a page contains errors. For instance, a button may display properly but not function because of a missing closing tag. Hence the need for tools to check syntax. This is relatively straightforward for static HTML pages but what about dynamic pages? When server-side technologies such as PHP or ASP are used to create HTML pages dynamically, checking and debugging the result can be difficult. This article will show how this can be done using the free text editor, HTML-Kit. This will involve configuring some of the features of this editor. No knowledge of any specific technologies is required but a general knowledge of HTML and of the function of browsers and web servers is assumed.
Using HTML-Kit to Debug Server-Side Scripts - Getting Started (Page 2 of 4 )
Since your files will be processed by a web server, make sure that you are working in a directory located in the home directory of your server. If you are using IIS or PWS, then this is most likely C:Inetpubwwwroot. As long as your directory is under the root directory of your server, you do not need to turn on web sharing. However, it is not a bad idea to do so. This can be done through IIS or PWS server administration or simply by right clicking the appropriate directory and choosing the menu option "Properties" and then the "Web Sharing" tab. If there is no "Web Sharing" tab, then make sure that your server is installed and is running.
In order to use this HTML editor to debug server-side scripts, we need to edit the user preferences. This can be rather intimidating as there are over twenty tabs in the configuration window and many options on each page. Have a look. Press the "Edit" menu option and then, at the very bottom, choose "Preferences". You should find a screen similar to the one below.
In this article we will only be dealing with a very limited number of settings. These will be, first, some basic settings to increase usability, second, telling HTML-Kit where your server is located and finally, making file associations.