Home

Basics
Overview
Menus
Toolbar
Tree
Code Editor
Search Frame
Change History

Intermediate
Add/Delete
Keywords
Search Lists
Date/Time
Shortcut Keys
Custom Icons
HTML Export
Hyperlinks
Drag & Drop
Bookmarks
Macros
Printing
Fonts
Hex View
Easter Eggs

Advanced
Revision Control
Object Storage
Language Def
Remote Folders
Server Sync
Online Search
Import Code
gbFlashLib

Forums
Announcements
Questions
Suggestions

Personal
Webcam
Biography
Contact Me

GBIC >> gbWare >> gbCodeLib >> Editing
gbCodeLib - Add/Delete Tree Elements
Titles of languages, categories and snippets may be edited within the Tree by using the context menu to initiate an edit of the name of a Tree element or by presssing F2.

Code snippet titles and source code may also be edited in the edit boxes to the right of the Tree.

Add a New Language/Category/Snippet

There are three options for adding a new Tree element:

  • Select an existing Tree element and then press the New icon on the toolbar
  • Use the Actions > New Node menu
  • Right-mouse click on an element and use the New option in the popup menu

      When a new Category is created it is automatically filled with a blank code snippet. When a new Language is created it is automatically filled with a default category and a blank code snippet.

      Delete a Category/Snippet

      gbCodeLib allows you to delete a snippet or category by selecting the Tree element you want to delete and then pressing the Delete icon on the toolbar. You can also right-mouse click on a snippet or category to get a popup menu with a Delete option. If a Category is deleted all code snippets within it are also deleted!

      When the Tree has the focus, the "Del" key also performs a delete action on a snippet or category.

      If all of the code snippets are deleted beneath a category, the category will remain in the Tree for the remainder of the current editing session. However, gbCodeLib does not save empty categories, so they will not be available for future editing sessions.

      Delete a Language

      To delete a language in gbCodeLib, delete all categories beneath the language. The language will remain available for the current session but when gbCodeLib is started again the language will disappear. Deleting all snippets under a language will also cause the language to disappear in the next session.

      If you want the language to disappear in the current session, then use the Tree > Sort Entire Tree menu command after deleting all of the categories (or snippets) under the language. The Sort Entire Tree refreshes the Tree and eliminates any languages or categories which have no children. Two other features, importing and switching between remote/local databases, also perform a Tree refresh and eliminate any unused categories or languages.