Option 1: Easy Copy Add-on (Recommended)
The Firefox Easy Copy add-on extension by Byron (new window) can be used to quickly copy the HTML source of a web page to the clipboard by selecting its Easy Copy->HTML Source menu option. When the document source is copied to the clipboard, CSE HTML Validator can automatically detect it, paste the clipboard text into a new document, and validate it.
- In CSE HTML Validator, enable the option to Watch the clipboard for HTML documents in the Clipboard page of the Editor Options (Ctrl+F3). You may also want to enable the Auto validate documents from the clipboard option.
- The current release of CSE HTML Validator v16 may not detect the clipboard text from Easy Copy as an HTML document because it may not contain a DOCTYPE. Contact us if you're interested in trying the v17 BETA which has improved HTML document detection.
- The HTML source that is copied to the clipboard using Easy Copy is created from the current state of the DOM and is not the original document source that you would see using the View Page Source option.
- If part of a page is selected then only the HTML source for the selection is copied.
Take advantage of the special cseclip tag in v17+ by setting the template for HTML Source to:
The template can be changed in the Easy Copy Options dialog (Easy Copy->Options). This will allow for better recognition of HTML in the clipboard and for link checking of relative URLs (because the absolute path can be computed).
- You can configure Easy Copy to add a Copy HTML Source option to the immediate right-click context menu so you have fast access to it (using Easy Copy->Options and selecting the Show In Main Menu option for HTML Source).
You can setup a new menu item specifically for CSE HTML Validator by clicking the New button in the Easy Copy Options dialog (Easy Copy->Options). See the screenshot below.
Option 2: Html Validator Add-on with CSE HTML Validator Support
Unfortunately this add-on has problems with current versions of Firefox
and CSE HTML Validator
and no longer appears to be under development. Consider using the integrated web browser
in CSE HTML Validator
instead. It allows you to browse the web while validating the HTML source.
The Firefox Html Validator add-on extension by Marc Gueury (new window) supports recent versions of CSE HTML Validator (v10.02 or greater, any edition). In the Html Validator add-on's options dialog, choose CSE HTML Validator for the Algorithm (highlighted in the screen shot). View the page source to see the validation results.
- Make sure the add-on version you're using is compatible with the version of Firefox you're using.
- When using CSE HTML Validator with this add-on, you may need to click on the add-on's icon to get the validation results. This improves performance by only validating when you want to see the validation results.
- As of 2015-03-23, we're aware of some issues with this add-on and the latest version of Firefox, and have contacted the add-on developer to try to resolve them:
- A possible mismatch between the shown source and the validation results
- The Options button for CSE HTML Validator doesn't work
- The validation results may not always display