Community
    • Login

    UDL User Defined Language - keyword inside delimiter

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    5 Posts 2 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sayanel LyyantS
      Sayanel Lyyant
      last edited by

      Hi,
      I’ve got a language for which some keyword should be evaluated only when within delimiter, meaning I want to see have :
      x = [keywordx2] // keyword should be recognized
      x = keywordx2 // incorect use of keyword, so it should not be recognized
      –> notice that bold only applies when keyword is within [ ]. Many other things oculd be inside the brackets (other keyword, operator, …)
      How to obtain that in with an UDL? Is it possible?
      Thanks

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Sayanel Lyyant
        last edited by

        @Sayanel-Lyyant

        you already posted the solution - define a delimiter and assign the color you want to it.
        Or did I miss something?

        Cheers
        Claudia

        Sayanel LyyantS 1 Reply Last reply Reply Quote 0
        • Sayanel LyyantS
          Sayanel Lyyant @Claudia Frank
          last edited by

          @Claudia-Frank
          No it would be too easy : only my keyword should be colored, meaning :
          Normal text is black
          Text in brackets is red
          MyKeyword not inside brackets is black
          MyKeyword inside brackets is blue (and the rest of the text inside the same brackets is red)

          (sorry I can’t give you visual example, as this forum doesn’t allow colored text, or at least I did not find it)

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Sayanel Lyyant
            last edited by

            @Sayanel-Lyyant

            Ok, so if I understood correctly you want something like this

            No, sorry - I don’t think this can be achieved with UDL.
            The problem basically is that you cannot define keywords_encased_by_delimiters only.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Sayanel LyyantS
              Sayanel Lyyant
              last edited by

              Yes thats it exactly
              So sad… I’ll do without it.
              Maybe it could be an improvement to do to UDL?

              Thanks

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors