Tapatalk

Custom Syntax Highlighting - All numbers are Red

Custom Syntax Highlighting - All numbers are Red

10
Basic UserBasic User
10

    Aug 24, 2005#1

    I have created a Syntax color list for editing Cisco Access Lists, but for some reason all numbers are showing up in red.

    I have tried inserting a /Delimeters line, but I only get different variations of red numbers.

    Also the word 'ip' is not being highlighted.

    Sample line
    access-list 128 permit tcp any host 127.10.10.10 eq 3389


    Wordlist Section
    /L12"Cisco Access Lists" Line Comment = // Nocase File Extensions = CAL ACL
    /C1
    ip
    tcp
    udp
    icmp
    /C2
    deny
    /C3
    host
    /C4
    permit
    /C5
    eq
    range
    gt
    lt
    /C6
    /C7
    /C8

    236
    MasterMaster
    236

      Aug 25, 2005#2

      Hi,

      have you tried Advanced/Configuration.../Syntax Highlighting? Select your Wordfile in the drop-down box, select numbers and change that color.

      Also, the entries within each section (/C1, /C2 etc.) need to be in alphabetical order. Maybe that helps?

      Best wishes,
      Tim

      344
      MasterMaster
      344

        Aug 29, 2005#3

        Jup. You MUST sort keywords alphabetically. (In case sensitive langs only?), also note that you need a separate line for big / smalll letters...
        Use the sort function of Ultraedit to sort the lines.
        Or use these 2 macros to move a line up or down :-)
        (works great if bound to e.g. <ctrl>-key-up/down

        InsertMode
        ColumnModeOff
        HexOff
        UnixReOff
        IfSel
        Else
        Clipboard 9
        SelectLine
        Cut
        Key DOWN ARROW
        Paste
        Key UP ARROW
        Clipboard 0
        EndIf


        InsertMode
        ColumnModeOff
        HexOff
        UnixReOff
        IfSel
        Else
        Clipboard 9
        SelectLine
        Cut
        Key UP ARROW
        Paste
        Key UP ARROW
        Clipboard 0
        EndIf


        rds Bego
        Normally using all newest english version incl. each hotfix. Win 10 64 bit

        10
        Basic UserBasic User
        10

          Aug 29, 2005#4

          I appreciate the replies, but alphabetizing the list did nothing. :(

          I also downloaded the Cisco IOS wordlist from this site, and it has the same problem, (almost) all numbers in red. Looks like this may be a bug perhaps.

          119
          Power UserPower User
          119

            Aug 29, 2005#5

            Bionicjoe wrote:I appreciate the replies, but alphabetizing the list did nothing.
            It wouldn't do anything for what color numbers show up in, but it does ensure that the rest of your keywords are recognized and work correctly.

            You've told us what you think is wrong (all numbers red) but you haven't told us what you think the right behavior is. Should all numbers be (e.g.) blue instead? Should some numbers be green and others purple?

            10
            Basic UserBasic User
            10

              Aug 29, 2005#6

              Ah, I see your point.

              All the numbers should just be black. In other words I am not assigning any colors to the numbers. Currently the best I can do is make the dots black by listing them in the delimiters section.

              In my original example the '128', ip address, and '3389' should remain black.

              The highlighting is much better than 'all black' text, but with so many numbers in a config all the red reduces the point of highlighting. If it's all highlighted nothing stands out any more. :?

              344
              MasterMaster
              344

                Aug 29, 2005#7

                BionicJoe

                Did you also try pietzcker advice ?
                The 5th entry on the syntax coloring screen belongs to numbers. What is the color there in your case ?
                The Color groups you specify are IRRELEVANT to numbers, they are just user defined ones (without numbers).
                So go to options, selct syntax coloring, select your language and look at "numbers" color, and tell me.

                Bego
                Normally using all newest english version incl. each hotfix. Win 10 64 bit

                10
                Basic UserBasic User
                10

                  Aug 30, 2005#8

                  THANKS!! Just had to change the 'numbers' setting to a different color. pietzcker had it right.

                  It was so simple, can't believe I missed that one. The numbers weren't highlighted at all before I started with the custom highlighting. So when the numbers all went red I figured it was a wordlist problem. :lol:

                  By the way the settings for UE v11.10 can be found in:
                  Advanced :arrow: Configuration :arrow: Syntax Highlighting tab
                  Select language from drop-down
                  Select Numbers from Color Group drop-down
                  Select color