Tapatalk

What are TGBegin/TGEnd, ... in the wordfile?

What are TGBegin/TGEnd, ... in the wordfile?

2
NewbieNewbie
2

    Aug 28, 2012#1

    Hi all,

    Is there a page that explains in detail what these switches are for? I don't see them listed in the online documentation. Maybe I missed them in one of the stickies?

    6,685587
    Grand MasterGrand Master
    6,685587

      Aug 28, 2012#2

      They are not document respectively explained as:
      1. It can be easily seen on wordfile c_cplusplus.uew installed with UltraEdit for which purpose those keywords for the hierarchical function list feature introduced with UE v16.00 are used for.
      2. Users don't need to know anything about them as configuration for the hierarchical function strings can be done in UltraEdit and therefore there is no need to define them directly in the wordfile (and make mistakes in the hierarchic resulting in a not working function string feature). Just right click into Function List view and left click on context menu item Configuration to open the dialog for configuring the function strings for the current syntax highlighting language.
      The names of those keywords are perhaps build from:

      TGBegin ... tree group begin
      TGEnd ... tree group end
      TGFindStr ... tree group find string
      TGFindBStart ... tree group find block start string
      TGFindBEnd ... tree group find block end string

      17
      Basic UserBasic User
      17

        Dec 10, 2012#3

        An concrete example would be helpful.

        Which version of Regex is used here? UltraEdit, Unix, or Perl?

        6,685587
        Grand MasterGrand Master
        6,685587

          Dec 10, 2012#4

          If you need an example, use syntax highlighting language C/C++ as defined in c_cplusplus.uew installed with UltraEdit.

          Open a file with file extension C or CPP and it will be highlighted with C/C++. Open the function list for example via View - Views/Lists - Function List, right click into the function list and left click on last context menu item Configuration.

          Or alternatively open Advanced - Configuration - Function List, select language C/C++ and click on button Modify Groups.

          The regular expressions are by default for the UltraEdit regular expression engine. Unix regexp engine is not supported. Perl regular expression engine can be used with adding manually to the wordfile the line

          /Regexp Type = Perl

          as explained on syntax highlighting help page and on Template for syntax highlighting language wordfile.

          There is no option in the dialog for creating the expressions for choosing the regular expression engine.

          As written at Subgroups in function list using Perl regular expressions (and some other topics in syntax highlighting forum) UltraEdit v18.20.0.1028 uses the Perl regular expression engine when above line exists only for the regular expression searches in top level of the hierarchy. For subgroups always the UltraEdit regular expression is used which of course is inconsistent and will be hopefully changed in a future version. Therefore the UltraEdit regular expression engine should be used if that engine is enough which is the case for 99% of all wordfiles. The greater power of Perl regular expressions is really needed only rarely.

          Update: Perl regular expressions can be used for all regular expression strings in a syntax highlighting wordfile for function string searches since UltraEdit for Windows v19.10 and UEStudio v13.10.

          17
          Basic UserBasic User
          17

            Dec 11, 2012#5

            Thank you Mofi.