What is the delimiter line in the wordfile.txt used for?

What is the delimiter line in the wordfile.txt used for?

4
NewbieNewbie
4

    Sep 19, 2005#1

    ...and what does it do?

    What I'd like to do is highlight anything between two delimeters. Either that or just highlight or color the delimeter characters.

    6,683583
    Grand MasterGrand Master
    6,683583

      Re: What is the delimeter line in the wordfile.txt used for?

      Sep 20, 2005#2

      The delimiter line specifies the characters which are interpreted by UltraEdit as word delimiter. An example string:

      this+that is useless

      If only the space character is specified in the delimiter line, UltraEdit will find 3 words: "this+that", "is" and "useless". If also the + character is specified as delimiter character, UltraEdit will find 4 words: "this", "that", "is" and "useless" (and word "+").

      What you need is the /Marker Characters = feature. Again an example

      /Marker Characters = "+-"

      this is a +marker character specified string- in one line.

      To specify the color of the string defined by the marker characters, write +- as string not as single characters to a color group you want.

      Marker characters can only be used for a string not spreading over multiple lines. The + and - must be on the same line.

      If your strings defined by the two characters are not always on a single line, use the alternative block comment as highlighter. For more details see help of UltraEdit about Syntax Highlighting.
      Best regards from an UC/UE/UES for Windows user from Austria

      4
      NewbieNewbie
      4

        Sep 20, 2005#3

        Thanks! That works pretty well. The problem I have now is that one of the two characters also shows up places alone and if the marked string happens to be on the same line then the whole line gets marked. Is there a way to mark something like this where spaces wouldn't be included?

        Here's an example, the Marker Characters are "%;". They will always mark a string that has no spaces in it. Like %dumb; and will never be like...
        %dumb stuff;

        The problem is that if there is a line like...

        % some things %dumb;

        ...the whole line from the first % to the ; gets colored and I want it to ignore "% some things" and just highlight %dumb;

        Is that possible?

          Re: What is the delimeter line in the wordfile.txt used for?

          Sep 20, 2005#4

          I just figured it out I think. If I use the substring notation and set it up as...

          ** %
          ;

          ...that works.

          Marker Charactes is definatly a good thing to know though and I really didn't get the definition of delimiters and what they are good for from the help topic the first time I read it. Your example helped. Thanks!

          6,683583
          Grand MasterGrand Master
          6,683583

            Re: What is the delimeter line in the wordfile.txt used for?

            Sep 20, 2005#5

            No, sorry. Marker characters marks everything from first character to last character or end of line. Alternative block comments will also not help here.

            But you can try following:

            Remove % and ; from the delimiters list, if you have specified it there.
            Delete also your current Marker Characters specification.

            At the color group you want, add this instead of the marker string %;.

            ** %

            Now UltraEdit will highlight all WORDS (not strings anymore) starting with a %. But it has 1 disadvantage: "words" like %dumb will also be highlighted although there is no ; at the end of the word. Maybe this is acceptable for you. If not, there is no solution for you needs, I think.
            Best regards from an UC/UE/UES for Windows user from Austria

            4
            NewbieNewbie
            4

              Sep 20, 2005#6

              Nope, that's fine. There would never be any words like...

              %dumb

              ...without a ; in it. At least not that I'd be worried about. And the only other time % shows up is by itself with a space after it at the beginning of a line. So that's fine. It is highligted by itself which is little trouble for anyone. Thanks for all your help!!