• Login
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.
  • S
    Sayanel Lyyant
    last edited by Jun 1, 2018, 9:36 AM

    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

    C 1 Reply Last reply Jun 1, 2018, 12:47 PM Reply Quote 0
    • C
      Claudia Frank @Sayanel Lyyant
      last edited by Jun 1, 2018, 12:47 PM

      @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

      S 1 Reply Last reply Jun 1, 2018, 1:00 PM Reply Quote 0
      • S
        Sayanel Lyyant @Claudia Frank
        last edited by Jun 1, 2018, 1:00 PM

        @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)

        C 1 Reply Last reply Jun 1, 2018, 1:20 PM Reply Quote 0
        • C
          Claudia Frank @Sayanel Lyyant
          last edited by Jun 1, 2018, 1:20 PM

          @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
          • S
            Sayanel Lyyant
            last edited by Jun 1, 2018, 3:08 PM

            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
            1 out of 5
            • First post
              1/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors