HOW TO: Open files in a folder, validate, then close files that don't need fixing

Post here if your topic is about CSS HTML Validator but doesn't fit in another forum.
Post Reply
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

HOW TO: Open files in a folder, validate, then close files that don't need fixing

Post by Albert Wiersch »

If you have a bunch of HTML or CSS files in a folder and you want to check them all and fix any problems that CSS HTML Validator finds, then here is one option.
  1. Open CSS HTML Validator.
  2. Optional if you want automatic validation when you open a file: Go to the Editor Options (Ctrl+F3) then to the Files > File Options page and check the option to 'Validate documents when opened'.

    The File Options page in the Editor Options with an arrow pointing to the Validate documents when opened option
  3. If you want to change the default validation mode, select it from Validate > Select Default Validation Mode. For example, if you only want to concentrate on errors, then choose Validate > Select Default Validation Mode > Errors only.
  4. Using File Explorer or similar program, open the folder that contains the files you want to validate. Select the files that you want to validate and then drag and drop the selected files onto CSS HTML Validator's main editor to open them.
  5. The files should automatically be validated if the option was set to do so, otherwise choose Validate > Validate All Open Documents (Alt+F6).
  6. Tip: Use the Open Documents Window (View > Windows > Open Documents) to view all the opened documents. You can sort by number of errors and warnings in this window (by clicking on the Results column).
  7. To automatically close all documents that have been validated and contain no errors and no warnings, choose File > Close Complete (Alt+W).

    Close Complete on the File Menu in CSS HTML Validator
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Post Reply