Editing HTML code

The TrueCode Editor is a color-coded editing tool that can wordwrap. All HTML tags and related syntax are enclosed in brackets and displayed in colors specific to the function of the tag or its related syntax.

When a topic is open in the TrueCode Editor, you can edit existing HTML code and add new HTML code. You can also use the copy (CTRL+C) and paste (CTRL+V) keyboard commands to copy HTML code from one topic to another.

WARNING! If you are not familiar with HTML code, it’s not a good idea to edit your topics in the TrueCode Editor. Non-standard code may render parts of the topic unreadable (or unusable). If the code you enter is not supported, you may not be able to edit the topic in the WYSIWYG Editor or display the topic in the viewer.

Wordwrap

Some authors prefer to have their HTML code scroll with the right margin of the editing window. Others prefer to have it wordwrap so they don't have to scroll beyond the right margin.

  1. Click the TrueCode tab.

  2. From the View menu, select Word Wrap. When on, this feature has a check mark at the left side of the menu option.

Undo

The TrueCode Editor provides a powerful Undo feature that takes you back through several cycles of changes, in case you change your mind while editing HTML code.

Tips:

  • It's a good idea to create as much information as you can using the WYSIWYG Editor first, so you get a good idea of what your topic will look like.

  • If you are an experienced HTML programmer you may notice HTML tags that typically do not appear in standard HTML documents for the Web. These HTML tags are added to support specific Help features you include in your projects.

  • If you find yourself using the same HTML code repeatedly, create a topic that contains all of the code. Save the topic in the HTML Files (Topics) folder so it is listed in the Project Manager. Then, whenever you need to reuse the code, you can open the topic in the TrueCode Editor, select the code to reuse, copy it to the Windows Clipboard, open the other topic in the TrueCode Editor, and then paste the code into it.