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.