The configurations for how CSE does its work is basically stored in two different places. How the program behaves is stored a set of String values in the Registry. The actual validation rules (the "knowledge" that CSE uses to validate your files) are stored in a configuration file; the the default configuration file is called htmlval25.cfg and it is installed in the Validator's program directory.
Because of the limitations mentioned above, you'll probably want to adjust some of the program options before validating VTML; because these options are stored in the Registry rather than in the configuration file, you'll have to do these adjustments yourself. Don't forget to set them back to what you had before when you want to use the program to validate HTML again!
There are two ways for using the VTML validation configuration file:
- With CSE HTML Validator as a stand-alone program;
- From within HomeSite while you're working on the .vtm files.
Since for each method there are slightly different ways to set it up and use it, I'll outline both below.
Using CSE HTML Validator as a standalone program to validate your VTML files.
- Start CSE 3310. (Tip: make a shortcut to it in the HomeSite group of your Start menu.)
- Press Alt+F2 or go to the Drag and Drop menu item and make sure the program is set to 'Use validator on Dropped Files'.
- Choose Settings -> Load Configuration... and use the File Open dialog to navigate to where you've installed the VTML configuration file (VTMLval25.cfg).
- If you want to adapt the program's behavior for VTML validation, do the following:
- Go to the Program Options dialog by pressing F4 or choosing Settings -> Program Options...;
- On the Program tab, UNcheck 'Autosave Program Options' so your options will not be automatically saved to the Registry;
- You may also want to change the Output Viewer and Document Editor to the editor you normally use (if you use something else than Notepad, that is);
- On the Validator tab, you'll probably want to increase the number of errors and warnings displayed; if you don't, CSE may reach one of those limits with some of the messages I could not suppress (see Limitations above) before it's done validating your VTML file;
- Also make sure you check both 'Allow spaces around "="' and 'Ignore all quotation requirements';
- On the Logging tab, you may want to enable logging;
- Press OK; you'll see a message "The default HTML Configuration file has changed. Do you want to load it now?". Press Yes, then press OK to confirm the message box "The HTML configuration has been successfully loaded". (You should get this message, anyway - if not, there's something wrong...);
- Now you can use Window's Explorer to highlight any .vtm files (one or more at the same time if you want) you want to validate, and drag and drop them on CSE 3310's open window.
- When you close CSE 3310, you'll get a message: "The program and/or validator options have not been saved. Do you want to save the current options before exiting?". Press No to prevent the temporary settings for VTML being saved into the Registry.
Using CSE HTML Validator as integrated with HomeSite.
If you normally use HomeSite as the editor for your VTML files, you can also use CSE with from within HomeSite with the VTML configuration file. It's just slightly more roundabout since HomeSite does not have a complete interface to all of CSE 3310's menu choices. (in fact, CSE only provides an interface for 'Program Options' and 'HTML Configuration Editor', so that's not Allaire's fault.)
- Start HomeSite and load the VTML files you want to work on and validate.
- If CSE is already open, close it: you cannot use the program from HomeSite when it's opened as a standalone program.
- HomeSite does not provide an interface to CSE 3310's menu option to load a different Configuration File; luckily there's a workaround through the Program Options for which HomeSite does have an interface; you'll probably want to adapt the program's behavior for VTML validation anyway, so do the following:
- Go to CSE's Program Options dialog by choosing Options -> Validator Settings -> Program Options...
- On the Program tab, do not uncheck 'Autosave Program Options': when CSE is called from HomeSite it looks at the Registry settings anyway so they have to be changed to point to the VTML configuration file before you can do VTML validation from within HomeSite.
- Still on the Program tab, change the Default HTML Configuration file to the VTML configuration file (you can use the '...' button to navigate to it with a File Open dialog)
- On the Validator tab, you'll probably want to increase the number of errors and warnings displayed; if you don't, CSE may reach one of those limits with some of the messages I could not suppress (see Limitations above) before it's done validating your VTML file
- Also make sure you check both 'Allow spaces around "="' and 'Ignore all quotation requirements'
- Press OK; you'll see a message "The default HTML Configuration file has changed. Do you want to load it now?". Press Yes, then press OK to confirm the message box "The HTML configuration has been successfully loaded". (You should get this message, anyway - if not, there's something wrong...)
- Now work on and validate any VTML file from with HomeSite just like you normally work with HTML files
- When you're done, don't forget to change CSE's Program Options back to how you normally have them for HTML validation since these are stored in the Registry (see tip below for a shortcut to doing this!).
|