While you can copy the formatted script content including the whitespace you can’t copy the colour of the text when you do so and so having an editor that can do it will be more convenient. The text editor we use is CSE HTML Validator Lite which also colour codes your HTML, CSS, and server side code for you as well as having a built in HTML validator.
The biggest differences in the way the browsers interpret your script is between Internet Explorer and other browsers so as a bare minimum you need one version of IE and some other browser that isn’t IE. Ideally you should test in the latest version of each of the popular browsers – Firefox, Google Chrome, Safari and Opera – as well as multiple versions of Internet Explorer (since not everyone using IE keeps or even can keep their browser completely up to date the way people using other browsers generally do).
As Internet Explorer is built into the Windows operating system you will either need multiple computers or set up a virtual PC environment to be able to test in multiple versions of IE. If this sounds too complicated then simply start out testing in whatever version of IE you have and be prepared to amend your code if someone using a different version tells you it doesn’t work for them.
To use the Example Code
Many of the examples on this site are too small to be covered by copyright and you may use them freely as you wish.
Larger scripts both here and elsewhere on the web are covered by copyright. They will normally contain a comment at the top advising you as to who wrote the script and therefore owns the copyright. The lack of such a notice does not mean that the script is not covered by copyright though. If in doubt then assume that a script is covered by copyright and ask the site owner for permission to use the script.