I am having marker troubles

I am having marker troubles

14
Basic UserBasic User
14

    Aug 05, 2005#1

    I am having a wee bit of trouble with multiple Marker sets...

    example:

    Code: Select all

    /Marker Characters = "[]{}"
    /C1"Marker1"
    []
    /C2"Marker2"
    {}
    
    and
    look at the text [Hello there{small}Kid of mine]
    You'd expect
    [Hello there{small}Kid of mine]
    you get
    [Hello there{small}Kid of mine]
    nesting is also a problem.
    For example, [abc[def]ghi] should render as
    [abc[def]ghi]
    not
    [abc[def]ghi]

    is there a solution out there?

    6,684586
    Grand MasterGrand Master
    6,684586

      Aug 07, 2005#2

      I think, you don't have understand how marker characters works. They are just for highlight a string with a very simple rule. Nested strings are not possible. I will try to clarify the function of marker characters based on your definition "[]{}".

      Code: Select all

      IF current character is not part of a string or comment THEN
         IF current character is equal to [ THEN
            search for ] or linebreak
            IF ] found THEN
               highlight all characters between [ and ]
            ENDIF
         ELSE IF current character is equal to { THEN
            search for } or linebreak
            IF } found THEN
               highlight all characters between { and }
            ENDIF
         ENDIF
      ENDIF
      Maybe a real string or a comment inside [...] or {...} is also a break condition for the search for ] or }. I have not tried it. However, what you want - highlighting of nested marker strings - is actually not possible.

      So you have to write a feature request by email to IDM for it. From a programers view, it should be possible to code nested marker strings.
      Best regards from an UC/UE/UES for Windows user from Austria