Configuring NVU

With NVU installed on your computer the next thing that we need to consider is configuring it to produce code that is as neat and easy to work with as we can get it.

Open NVU and select Preferences from the Tools menu. This will open the Options window (you would think that they ought to have been able to name thos consistently as either Preferences or Options but they have gone one each way instead).

The Options General page

This opens first at the General page. It is up to you exactly what settings you select here but the two that I would suggest that you make sure are selected are Retain original source formatting in order to ensure that NVU doesn't mess up any HTML code that you import from any other editor, and Use CSS styles instead of HTML elements and attributes which provides for more options and stops NVU from using deprecated tags and attributes that have been replaced by CSS.

You can work your way down through the rest of the pages in the Options window and select those settings that you prefer. If you are not sure what a setting if for then leave it alone for now, you can always return later and change it if necessary.

The one other settings that I would make sure is set a certain way is on the Advanced page and that is the DTD setting which I recommend that you set to Strict. Also unless you have a specific reason for choosing XHTML I suggest that you choose HTML 4 as the Language. (I have my own reasons for choosing XHTML 1.0 but then I understand the difference between the two). And also the Return in a paragraph always creates a new paragraph to make it easier to create the bulk of your content.

The Options Advanced page

Now that we have the editor configured, the next step is to start creating your pages. I recommend that the way to do this is to first obtain or create a template that can be used for the basis of all your pages.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow