Code snippets and categories use the same element called item.
The XML file starts with root item, snippets, which holds all the categories and code snippets. The context menu entries "Open File" and "Open Url" also invoke the associated program with the snippet as its parameter.Ĭode snippets plugin uses XML (UTF-8 encoded) file to save all code snippets. The user may specify their own editor by using the Settings entry inįile Links may be run (opened) with their associated program by holding the Alt key down and left double clicking the snippet item. Modified data for a File Link is saved with the Ok button and Link to be placed in the Snippet item (use the Link Target button). Invoke the Properties context menu and choose a file as a target.Right click a text Snippet and invoke the context menu Convert To File Link.To create a File Linked Snippet item either: The Snippet data containing the file name canīe accessed with the context menu Properties command. When the editor is invoked on a File Link Snippet, the file data is opened in theĮditor rather than the Snippet data. File Link Snippetsįile Link Snippets contain a file name or url as the first text line. Select the ">" icon to change the search method and case sensitivity. Searching is performed by find-as-you-type method.Ĭategory labels are included in the default search method. Search for Snippets by typing their labels into the search pane at the If you want to create a Category to the root, right click All Snippets and The number of Categories and sub-Categories is not limited.Įach Category has a parent Category, whose ultimate base is the All Snippets But you may drag Snippets andĬategories to other locations on the tree. Snippet, choose Edit and change the Label field, Click OkĮach Snippet is owned by its containing Category. Snippet labels may also be changed from within the editor. Typing a new label, then finishing with the Enter key. You may change any Snippet or Category label by slowly left clicking the label, To add a Category, right click the root or other Category and select And Categories can be added to Categories. You may also open the snippet with the editor, mark the text and drag it to You can, alternatively, right click on the snippet and select Apply. It will be applied to theĬurrently active editor at the current cursor location. The default editor is based on Scintilla and contains a context menu of its own If you pefer to append the text, use the context menu Edit To assign text to a existing snippet, you drag and drop the text Simply hold down the Ctrl key while dragging the text. This is the defaultīehavior of drag and drop it moves by default. You might noticed that the text you dragged disappeared. Other Category you may have created via the Snippets context menu. The top of a Category, either to the All Snippets root item or to some 3) cut, paste or drag text into the snippet editor.įor example, create some external text.2) mark some text and drag it over the top of a snippet tree item or.1) write the text in the default snippet editor.In any errors are found, the "Syntax Errors" dialog will be displayed with the warning message "This code has syntax errors." (Note: The check_syntax function is set to No by default to enable it, edit the gb.ini file. If this parameter is set to Yes, GUIBuilder checks each block of code for errors as it is saved to the. There is a parameter in the gb.ini file called check_syntax. The error checking included with the Build Program function is more comprehensive, because it is able to examine the entire program rather than just a line of code at a time. The Build Program function from the Program menu also checks for errors, but it only reports one error at a time. Input focus is transferred to the Edit Code window. Select one of the errors from the list, then press the Close button. If one or more errors are found in the current block of code, the "Error List" dialog is displayed with a list of error messages, showing the relative line number within the current block for each error.ģ. If no errors are found in the current block of code, the Check for Errors dialog is displayed with the message "No errors found." One of the following dialogs is displayed: On the toolbar, click the Check for Errors button.Ģ. On the Program menu, select Check for Errors. To check for errors in the current block of code: