scheme to highlight (color) one character?

scheme to highlight (color) one character?

10
Basic UserBasic User
10

    May 28, 2006#1

    I want to highlight the pipe symbol | in otherwise straight plain text. I created an addition to the syntax file to color it red, but it only works for about the first dozen instances, then it remains black.

    /L12"TEXT" TEXT File Extensions = TXT
    /C2
    |

    Am I missing something? Or is there a better way to do this?

    6,613550
    Grand MasterGrand Master
    6,613550

      May 29, 2006#2

      A delimiter specification like

      /Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,tab.?

      which contains also the pipe character could help. tab has to be replaced with the tab character (code in hex: 09).
      Best regards from an UC/UE/UES for Windows user from Austria

      10
      Basic UserBasic User
      10

        May 29, 2006#3

        Mofi, the man who never sleeps.

        My test file is 135 lines long, with 5 pipes per line.

        With the original
        /L12"TEXT" TEXT File Extensions = TXT
        /C2
        |
        I get the first 18 lines with red pipes; the rest remain black

        Adding the line
        /Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,tab.? (and a whole mess of variations)
        changes all pipes to black.

        Adding
        /Delimiters = |
        Changes all the pipes in lines 1 to 19 red; all the pipes in lines 20 to 43 black, and the last three pipes in lines 44 to 135 to red.

        No matter what I try, I can not get a consistant result. This is frustrating.

          May 30, 2006#4

          Added Noquote to the line and it now works a treat.