Notetab XHTML library

updated 16/09/05

These files are for use with the awesome Notetab program1—an HTML and text editor.

Installing

These two files are meant to be used together. The clip library (XHTML-2.clb) calls on the template file (XHTML.tpl) to start new pages.

Put XHTML-2.clb in the Program Files > Notetab2 > Libraries folder.

Copy XHTML.tpl to the Notetab > Templates folder.

Restart Notetab and make sure your Libraries bar is visible. This can be done by checking View > Libraries bar is checked on the Notetab menu. Then click on the XHTML-2 button to use this library. NB. if you have a lot of libraries installed you may have to scroll the bar to the right to find the button.

It's probably also best to have “create XHTML files” ticked on the View > Options > HTML files tab.

About these files

XHTML-2 is a heavily edited version of the default HTML Notetab library. Many of the deprecated or outdated tags have been removed like <center>, <i>, <b> and <font> whilst others have been added (eg <span>) or modified. For instance many tags' dialogue boxes now prompt for class, id or style values. The <img> tag no longer gives the option of a border because image borders are now set with CSS.

The order of tags is somewhat messy which is because I only use these libraries with the escape key method which is the fastest and most convenient way IMO. Also the Quickies tags are at the top so they can be found with the least number of key strokes when using the escape key method. If you don't use this method I thoroughly recommend it. You never need have the library visible again (press f4 to show and hide it).

CSS clip

There is just one CSS clip which is font-family. That's because I find the easiest way to write CSS is simply by hand. But remembering those dammed font sets is not so easy and slow to type out each time. Although this font family uses drop down boxes you can type anything else you like in them such as the font size in ems if you want.

If you want CSS clip files then check out the Notetab site.

Document Elements

XHTML.tpl is a modified Notetab file. This is used for creating new documents or the HTML begin element. The original was not formatted for IE 6 which goes into quirks mode when xml prologue is present. This has been removed because it's not necessary. This means that documents are both standards compliant (and will validate on W3C's validation service) and practically compliant meaning it works the way that current browsers work too. I've also removed the meta tag which puts Notetab in as the generator.

N.B. I found I couldn't open the .tpl file in Notetab itself because it always opened as a template dialogue and not a text file. If you want to edit this yourself open it in another program (eg. Notepad) or perhaps change the filename extention first.

Finally…

Overall this library is not perfect but it suits me fine and the way I write code. It's ideal for anyone trying to write strict or close to strict DTDs3. But feel free to modify it anyway you please if it doesn't suit you. I don't understand Notetab's clip language at all but by carefully examining certain clips and with some cunning cut'n'pasting I was able to create a library that suited me.

Any comments or questions etc let me know.

DOWNLOAD THE FILE

  1. The fully functioning light version of Notetab can be downloaded for free from www.notetab.com.
  2. Depending on what your main Notetab directory is called. It's different according to version - Notetab Pro, Notetab Light etc…
  3. This library still allows _target attribute in anchor elements—useful for getting out of frames without javascript.