|
|
|
|
Home / Products / MIB Browser / MIB Browser Help / Working with MIB Modules / Editing MIB Modules
Editing MIB Modules
WinAgents MIB Browser includes the full-features editor of MIB modules. To edit a certain MIB module, you should select it in the tree with MIB modules and select the 'View As Text' tab on the View panel. In this case the program switches into the mode of viewing and editing the source code. The editor built into WinAgents MIB Browser highlights the syntax of MIB modules, which makes it much easier to work with it. Comments are gray, keywords and operators are blue, text strings are green and numbers are pink.
Changes you make in a module are applied only after you reload this module into the memory. It means that after you finish editing a module, you should unload it first (you can do it before you start making changes) and then load it again. The module is compiled when it is being loaded. If there is an error detected in the process of compiling, the program will go back to the editing mode, highlight the incorrect line and show a brief description of the problem.
You can enable the search feature using either the corresponding button on the toolbar or the hot key combination Ctrl+F. It opens the dialog box used for entering the string to search for. Besides, the following additional search parameters are available in the dialog box:
- Case sensitive - enable/disable case-sensitive search.
- Whole words only - enable/disable searching for whole words only.
- Regular expressions - enable/disable searching for regular expressions only.
- Direction - specify the search direction.
- Scope - specify the search range.
- Origin - specify the point to start searching from.
If the search is successful, the editor selects the matching line. To continue searching from that place with the same criteria, you should press F3.
Another tool that makes navigation much easier is the bookmark mechanism. To set a bookmark, you should go to the necessary line and click the 'Toggle bookmark on the current line' button. Besides, another way to set a bookmark is to select the 'Toggle bookmark' command from the context menu of the editor. Two buttons are used to jump to bookmarks: Move the caret to the previous bookmark (go to the previous bookmark) and Move the caret to the next bookmark (go to the next bookmark). The same commands are also available from the context Edit menus. To remove a bookmark from some line, you should place the cursor on it and select the Toggle bookmark item again. To remove all bookmarks, you can use the Clear all bookmarks in the current document button and the corresponding item from the context menu.
The program allows you to print MIB modules. You can do it with the help of either the Print button on the toolbar or the corresponding item from the 'Actions' menu. You can use the corresponding dialog box to print only the selected fragment instead of the entire text. The Print selected block checkbox is used for that. It is available only if there is some text selected in the editor. You can also use the Setup button in this dialog box to go to the standard printer setup dialog box. You can set up printing with the help of the following options:
- Header/page number - print headers and page numbers.
- Line numbers - print line numbers.
- Syntax print - print with highlighted syntax (keywords, variables, strings, etc. will be highlighted with color and font).
- Use color - print in color.
- Show print progress - show the progress of printing.
- Wrap lines - wrap long lines while printing.
- Left margin - left margin.
|
|
|
|