fortios.uew created but one section has over 4000 rows and open fold strings will not go past 60 rows

2

PostSep 27, 2025#1

The question is: How can I get the /Open Fold Strings = "config" "edit" and /Close Fold Strings = "end" "next" to handle a large number of rows from the word config to the end?

UltraEdit version 2025.0.0.39 64-bit

Example:

Code: Select all

Start:
config firewall address
    edit "none"
        set uuid 27184384-ff11-51eb-324e-09d236be6472
        set color 6
        set subnet 0.0.0.0 255.255.255.255
    next
Repeated 4000+ times with FortiGate settings
end
fortios.uew (1.82 KiB)   0

PostSep 27, 2025#2

I fixed it. I had a - as a Delimiter and it is used sometimes in a command.

6,827625
Grand MasterGrand Master
6,827625

PostSep 28, 2025#3

I recommend using the wordfile in the attached ZIP file. There are following improvements applied.
  1. Removed /Block Comment On = and /Block Comment Off = from the first line and added instead DisableMLS to disable multi-line string highlighting.
  2. Removed - from the /Delimiters = line.
  3. Sorted all words in the color groups and the delimiters using the macro SortLanguage.
  4. Ran the macro TestForDuplicate reporting:

    Code: Select all

    Sorry! Found following duplicate words:
    
    address -> in /C2
    address -> in /C4
    
    admin -> in /C2
    admin -> in /C3
    
    certificate -> in /C2
    certificate -> in /C6
    
    global -> in /C2
    global -> in /C3
    
    interface -> in /C2
    interface -> in /C3
    
    policy -> in /C2
    policy -> in /C5
    
    dns -> in /C3
    dns -> in /C7
    
    ntp -> in /C3
    ntp -> in /C7
    
    snmp -> in /C3
    snmp -> in /C7
    Removed the duplicate words from the color groups with higher color group number.
  5. Ran the macro TestForInvalid reporting:

    Code: Select all

    Sorry! Found following invalid words:
    
    tacacs+               <- contains the delimiter:  +
    !=                    <- contains the delimiter:  =
    <=                    <- contains the delimiter:  =
    ==                    <- contains the delimiter:  =
    >=                    <- contains the delimiter:  =
    Removed + from the /Delimiters = line.
    Removed the operators consisting of two delimiters.
  6. Removed third function string and corrected/improved the other two function strings using the legacy UltraEdit regular expression engine and the older function string definition.
fortios_v1.zip (969 Bytes)   0
First improved version of wordfile for FortiOS Configuration