NoteTab Tips


About NoteTab

NoteTab is a text editor specifically designed to create and edit HTML pages. In addition to the standard editing commands, it provides shortcuts (called clips) for inserting HTML tags and color coding to distinguish between the text and HTML tags.

NoteTab is available in three versions: Light (free), Standard ($9.95), and Pro ($19.95) from Fookes Software.

 


Editing HTML

In addition to the usual editing commands -- Cut/Copy/Paste, Find/Replace, Select All, Undo, etc. -- NoteTab includes commands specifically for managing HTML.

Not all commands are included in the following lists, only those that are particularly useful for HTML.

 

Search Menu

 

Modify Menu

 

Document Menu

 

Tools Menu

 

Help Menu

 


Using Clips

Clipbooks (also called Libraries) contain frequently used HTML tags and blocks of text. You can speed up creation and editing of HTML pages by inserting clips instead of typing the text.

You can rearrange, add, edit, and delete clips within a Clipbook. You can also create new Clipbooks.

Each Clipbook is a separate .CLB file in the Libraries subdirectory inside the NoteTab product directory. To delete unneeded Clipbooks from the NoteTab window, close the Clipbook pane and move the corresponding .CLB file out of the Libraries subdirectory.

 

Clip Types

Most commonly, clips are created to insert HTML tags in a document. You can, however, create clips to insert frequently occurring text of any length. Using these text clips can save much time and prevents typos. The procedure for creating a text clip is the same as for creating an HTML clip.

For example, if you are typing a list of addresses and need to type out the state names, you can create a clip for each state, using the two-letter abbreviation for the clip name. When you type the abbreviation and press F2, the spelled-out state name is inserted.

Some clips are designed so you can "surround" document text with the clip, for example, to insert opening and closing HTML tags such as <A HREF>...</A>.

If a clip contains the cursor-positioning code ^&:

Double-click clip Bold (the clip text is <B>^&</B>)

Result: <B>selected text</B>

If a clip contains the prompt code ^?[label], selecting the clip displays a dialog box so you can specify text to be included in the inserted clip. Each ^?[label] creates a field in the dialog box. A clip can contain any number of these fields. If you select document text before double-clicking a "dialog box" clip, the selected text populates one or more of the fields.

For example, this clip

<A HREF="mailto:^?[&Email address=^&]">
^?[&Link description text=^&]</A>

displays this dialog box.

If you select the phrase e-mail me in the document before double-clicking the clip name, the text is inserted in the field so you do not have to type it.

When you type the e-mail address in the first field and click OK, the following HTML is inserted into the document.

<A HREF="mailto:cowanme@yahoo.com">e-mail me</A>

 

Inserting Clips

You can use any of the following methods of inserting clips. For each method, the Clipbook containing the specific clip must be displayed in the left pane.

Double-click the name

In the Clipbook pane, double-click the clip name.

You can change the NoteTab option so you can insert a clip with only a single click. From the View menu, select Options; then in the Options dialog box select the Clipbook tab.

Drag-and-drop the clip

Drag-and-drop the clip name from the Clipbook pane to the desired position in the document window.

Type the clip name and press F2

When you use this method you do not have to type the entire clip, just enough to create a unique string. For example, the clipbook contains clips named
blockquote
bold
brackets

To insert each clip, you can type just bl, bo, or br, then press F2.

Use Auto-Replace

  1. On the Tools menu, make sure the AutoReplace option has a check mark next to it.

  2. Type the clip name.

  3. Type a space, tab, Return (Enter), or one of the following punctuation marks:
    ! " , . : ; = > ? ] }

If the clip contains the cursor-positioning code ^&, the character you typed to activate the clip (space, tab, bracket, etc.) is automatically deleted when the clip is inserted.

 

Creating a Clip

You can create a new clip only when the Clipbook pane is open.

  1. Right-click on the clip name below which you want to insert the new clip name. The popup menu appears.

  1. Select Add New Clip. The Clip Name dialog box appears.

  1. Type a name for the clip and choose OK. The name is added to the Clipbook, below the name you right-clicked in step 1, and the (Clips) window opens.

  2. Type the HTML tag or text that you want this clip to insert. You can include paragraph returns and tabs; remember that HTML does not allow multiple spaces (e.g. if you type three spaces in a row only one will appear in the web page).

    See below for details on using special features in your clips.

  3. Right-click in the Clipbook pane and select Save Now from the popup menu.

Special Clip Features

You can create clips that surround selected text with the clip text, for example to insert opening and closing HTML tags.

In the clip, type ^& as a "placeholder" for the text between the opening and closing tags; for example, <B>^&</B>.

  • If you select text before using the clip, the tags are inserted before and after the selected text.

Double-click clip Bold.

Result: <B>selected text</B>

You can also create a dialog box for specifying embedded text before inserting the clip in the document. For each field in the dialog box, type

^?[fieldname]

in the clip, where fieldname is the label you want to appear above the field in the dialog box.

For example, you could create a clip, "Document Header," to insert the HTML tags and text for the document title, author's name, and search keywords:

  1. Right-click in the Clipbook pane and choose Add New Clip from the popup menu.

  2. When the Clip Name dialog box appears, type Document Header in the field and click OK.

  3. Type the following text in the Clip Editor.

    <HEAD>
    <TITLE>^?[HTML Document Title]</TITLE>
    <META NAME="AUTHOR" CONTENT="^?[Author's Name]">
    <META NAME="KEYWORDS" CONTENT="^?[Keywords]">
    </HEAD>
  4. Right-click in the Clipbook pane and select Save Now from the popup menu.

The new clip may not work if you do not save the Clipbook after creating the clip.

 

  To insert the clip into your document:

  1. Position the cursor where you want the clip to appear.

  2. Double-click the clip name Document Header in the Clipbook pane. The dialog box appears. (Note that the text strings inside brackets in the clip become the field labels.)

  1. Type the appropriate information in each field.

  1. Click OK. The HTML tags, with specified text, appear in the document.

    <HEAD>
    <TITLE>Home Page</TITLE>
    <META NAME="AUTHOR" CONTENT="Maia Cowan">
    <META NAME="KEYWORDS" CONTENT="Maia Cowan, Eclectic Synapse">
    </HEAD>

Organizing Clips

You can organize your clips by inserting descriptive headers and adding a new clip under the appropriate header. To create a header:

  1. Right-click in the Clipbook pane at the point where you want to insert the new header.

  2. Select Add New Clip from the popup menu. The Clip Name dialog box appears.

  1. In the field, type a semicolon ( ; ) and then the header, for example
    ;Special Characters
    for a list of HTML tags that create such characters as angle brackets, "smart" quotation marks, en dashes, and em dashes. The semicolon indicates that the text is a header, not a clip name.

  2. The header is inserted at the point where you right-clicked in the Clipbook pane.

    Special Characters

    By default, all headers are red to distinguish them from clip names (In NoteTab Pro, you can change the color by using the Options command on the View menu).

To rearrange clips in the list, you need to move each clip individually to the desired position:

  1. Right-click the clip and select Copy to Clipboard from the popup menu (there is no Cut command for clips).

  2. Right-click the same clip and select Delete Clip from the popup menu.

  3. Right-click the clip below which you want to insert the copied clip, and select Add from Clipboard from the popup menu.

The popup menu contains a Sort command, but it sorts the entire Clipbook list, include the headers, and so is generally not useful for organizing the clips.

Creating a Clipbook

You can create your own Clipbooks to contain only the clips you need for a specific document or project.

Copy an Existing Clipbook

If an existing Clipbook contains some of the clips you want to include in the new Clipbook:

  1. In Windows Explorer, make a copy of the .CLB file of the existing Clipbook (.CLB files are stored in the \Libraries subdirectory of the NoteTab product directory) and rename the copy as needed.

  2. Open NoteTab, then open the Clipbook pane if necessary.

  3. At the bottom of the NoteTab window, select the tab for the new Clipbook.

  4. Add, delete, and rearrange the clips as needed.

  5. To save the changes, right-click in the Clipbook pane and select Save Now from the popup menu.

Create a New Clipbook

To create a new (empty) Clipbook:

  1. From the Tools menu, choose Clipbook > New Library. A new Clip Editor appears, named Clip01.clb.

  2. Press Ctrl+S. When the Save As dialog box appears, assign a name and save the library. A new tab appears at the bottom of the window, with the new Clipbook name.

  3. Add clips as needed to the new library. You can create new clips or copy clips from other Clipbooks.

Copy Clips Between Clipbooks

To copy a clip from one Clipbook to another:

  1. Display the Clipbook from which you want to copy the clip.

  2. Right-click the clip and select Copy to Clipboard from the popup menu.

  3. Display the new Clipbook.

  4. Right-click in the Clipbook pane, at the spot where you want to insert the clip, and select Add from Clipboard from the popup menu.

 


Customizing NoteTab

Through the Options command on the View menu, you can specify:

This topic does not cover all NoteTab options, just the "Most Frequently Used." For complete information, see the NoteTab online help.
General Options
Files Options
Internet Options
Tools Options
File Filters Options
Toolbar Options
Shortcut Menu Options

 


Color Highlighting

Color highlighting is available only in NoteTab Pro.

 

Color highlighting indicates different elements in the HTML code. The default colors are as follows:

The text usually changes color as you type an HTML tag. You can sometimes tell whether you've made an error by whether the text is the appropriate color: for example, as you insert a tag, the "normal text" following it changes to the same color as the tag, then changes back when you complete the tag — but if you do not correctly complete the tag, the normal text remains color-highlighted.

You can use the Options command on the View menu to change the defaults. When the Options dialog box appears, select the Colors tab.

 


Adding NoteTab to the Windows Explorer Popup Menu

After you install NoteTab, you can add a command to the popup menu in Windows Explorer so you can open a file into the application by right-clicking the file.

  1. In Windows Explorer, select View menu > Options. The Options dialog box appears.

  1. Select the File Types tab, then scroll down to select Microsoft HTML Document 4.0.

  1. Click Edit. The Edit File Type dialog box appears.

  1. Click New to add a command. The New Action dialog box appears.

  1. In the Action field, type Edit with NoteTab.

To create a shortcut key for the command, insert an ampersand (&) before the desired letter, for example Edit &with NoteTab. This letter is underlined on the popup menu. Make sure you do not choose a letter that is a shortcut key for an existing command.
  1. Click Browse to enter the full pathname for NoteTab in the Application field.

  2. When the Open With dialog box appears, navigate to the directory, select NoteTab.exe, and click Open. The dialog box closes and the pathname is entered in New Action dialog box.

  3. Click OK. The dialog box closes and the command is added to the list in the Edit File Type dialog box.

  4. Click Close in the Edit File Type and Option dialog boxes. Right-click any HTML file to see the new command on the popup menu. If you select the command after right-clicking, the file opens into NoteTab.