The Modify Groups dialog is used to define parsing rules which define groups and subgroups for syntax highlighting languages used in the editor. These groups and subgroups determine how the hierarchical function list will be populated for a given language.
Define Group parsing rules for
By default, this dropdown will be set to the appropriate language for the active file. If the user wishes to modify parsing rules for a different language, it may be selected.
This textfield is used to define new names for groups/subgroups that would be added to the hierarchical tree using the Add button. Any group/subgroup which is added will be inserted into the tree under the node currently selected in the tree displayed in the Existing Groups control.
If a previously defined group is selected in the Existing Groups control, its name may be modifed and the modification can be saved using the OK button.
Users may delete selected nodes from the tree using the Delete button.
Nodes may be moved up or down in the tree using the Move up and Move down buttons.
When a group is selected in the Existing Groups tree, the regular expression(s) associated with that group need to be specified in the list labeled Define regular expressions for selected Group below. Multiple expressions may be defined for each group/subgroup, but each added expression will affect the time required to parse documents. Groups (e.g. Functions and Classes) would not need to have a scope defined. They would be scanned for throughout the entire document.
Subgroups require regular expression(s) used for detecting matching strings as well as a scope within which the search for those strings will be executed. For example, to match parameters for a function one might define the following:
This would indicate that once a function is matched, the editor will search for strings bounded by "(" and ")" and test for matches to the specified expression between these points. To match variables within the function body, one might specify:
It is important to note that while multiple regular expressions may be defined for groups and subgroups, subgroups must always have a matching scope.
When the Add button is pressed, a field in the regular expressions table will be activated for editing. Users may define a new regular expression string here. If the user wishes, he may select an existing expression and modify it. The Modify button would be used to active a field for changes. Finally, if a particular expression is no longer required, it may be selected and removed using the Delete button.
|Posted - Thu, Oct 20, 2011 7:26 AM. This article has been viewed 744 times.|
|Online URL: http://www.ultraedit.com/help/article/modify-groups-1707.html|
Powered by PHPKB Knowledge Base Software