Editing in Show Codes View

 

Show Codes View provides an important vehicle for editing, particularly for editing embedded commands. You can switch to Show Codes view by pressing Shift+F8, by clicking View, Codes or by clicking the Show Codes View button at the bottom of the Nota Bene screen.

 

Show Codes View (also known as Expanded Mode) displays non-printing embedded commands as well as the text that will be printed.  Embedded commands are shown as text enclosed in double angled brackets that are green (opening command bracket) and red (closing command bracket) on a gray background.  For example, the command at the beginning of italicized text would be shown as «MD+IT» where the opening command bracket is green on a gray background and the closing bracket is red on a gray background. Text can be added or deleted in Show Codes View, and commands can be added, edited or deleted.

 

Editing text:  Type new text or delete text in Show Codes View just as you would in Page Layout View.

 

Moving from command to command: The next full command in the document can be highlighted by pressing Ctrl+= (the Control button and the equal sign at the top of your keyboard). Pressing Ctrl+= repeatedly will take you from command to command throughout the document.

 

Command help:  For information about a command, place your cursor on or before the command and press Ctrl+F1. The command that the cursor is on or the next command in the text will be highlighted and a pop-up screen will appear with information about the command.

 

Deleting commands: To delete a command, use the Delete key or the Backspace key to remove the full command including the opening and closing command brackets. If the full command is highlighted (as discussed above), the full command can be deleted by pressing the Delete key or the Backspace key. To delete all of the commands in a document, see Regularize Document.

 

Adding new commands: New commands can be added in codes view by using the action line or by typing the command in directly. Commands are not case sensitive and can be typed using either upper case or lower case letters.  

 

To use the action line, place your cursor where you want the command to take effect, then press F9 to access the command, then type the command, then press F10 to enter the command.  When using the action line, most basic commands are two letters followed by a space and then more detailed information.  For example, to enter the mode command for italics on the action line, you would press F9, then type MD +IT (with a space after the MD), then press F10.
To type a command in directly, use Ctrl+< or Ctrl+> to type the opening or closing command brackets.  The space after the command that is required when using the action line is omitted in codes view.  For example, to enter the mode command for italics directly in codes view, you would press Ctrl+< and then type MD+IT (with no space) and then press Ctrl+>.

 

Editing commands:  Existing commands can be edited by adding or deleting text within the command brackets. Most commands begin with two letters and continue with specific details. For example, the TS or Tab Set command would look like this: «TS.5IN,1IN,3IN,5IN». You could delete this command (Nota Bene would then use tabs based on a tab setting command earlier in the document, or on your default settings) or you could edit it, for example, by adding 2IN between the 1IN and the 3IN (continuing the pattern of separating the tab settings with commas and no spaces). The Windows cut (Ctrl+X), copy (Ctrl+C) and paste (Ctrl+V) functions can be used to move or copy a command to other places in the document. In all cases, the commands must be kept intact (opening bracket, followed by command, followed by closing bracket). If you delete part but not all of a command or if you change the command so that it is illegal (e.g., by not having the tab settings in numerical order), the command will be visible in Page Layout view and should be deleted or corrected. While the TS command is very easy to edit in Show Codes view, some commands are very complex and interrelated with other commands (e.g., frameworks), and even an experienced user would do better to use the menus to make the desired changes.

 

Headers, footers, notes and annotations: Headers, footers, notes and annotations include the text that will be part of the header, footer, note or annotation. The following is an example of a footnote command: «FN1See page 52.»  "FN1" is the command for series 1 footnotes and "See page 52." is the text that would appear at the bottom of the page in Page Layout view and in the printed document. In Show Codes view, the full command appears in the document at the point where the footnote reference number will appear in Page Layout view and in the printed document. The text of the footnote can be edited directly in Show Codes View. If you have included formatting codes in a footnote (or in a header, footer or annotation), you may see one or more commands within the command to insert a footnote.  For example, the following footnote command includes a word in italics: «FN1See «MD+IT»Phaedo«MD-IT» 80-82»

 

Troubleshooting:  If you find an unexpected or unwanted change in the formatting of your document, place your cursor at the point of the change, switch to Show Codes View and check to see what formatting commands are at that point in the document. If Show Codes View reveals unintended or repetitive commands, they can be deleted.  

 

Errors in editing or deleting commands:  If you delete a portion of a command (leaving an incomplete command) or introduce a command that is not recognized by Nota Bene, the command will be shown as text in Page Layout view. It can then be deleted in Page Layout View by highlighting it and pressing Delete, or it can be deleted or corrected in Show Codes View.

 

Tips for successful editing

 

When format commands are issued in Nota Bene, they are inserted in the document and continue in effect until another format command is issued.
Deleting a format command will instruct Nota Bene to rely on previous format commands, or on the default format commands.
The mode commands in Nota Bene (bold, italics, underline, double underline, strike through, subscript, superscript) consist of MD and a specific two letter command (e.g., BO for bold or IT for italics). A plus sign between the MD and the final two letters indicates that the command is additive. For example «MD+BO» will add bold to any mode commands already in effect, but «MDBO» will override or eliminate any other mode commands and begin bold. «MD-BO» will end bold, but any other mode commands will continue in effect. «MDNM» will end any and all mode commands, returning to "normal" mode.

 

 

See also:

Show Codes View

Formatting Overview

Illegal Format Codes