Community
    • Login

    UDL: Suffix Mode

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    54 Posts 8 Posters 17.6k 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.
    • EkopalypseE
      Ekopalypse @Alexander Seidel
      last edited by

      @Alexander-Seidel

      regarding the italic issue, what about using a delimiter with
      open int( and closing ) and setting it color to the default color?

      1 Reply Last reply Reply Quote 0
      • Alexander SeidelA
        Alexander Seidel
        last edited by

        @Ekopalypse said in UDL: Suffix Mode:

        If

        I just used this line now:
        if pos >= 0 and (editor.getStyleAt(pos) not in [1, 2]):

        and nice tip for the italics! That worked perfectly. I first tried to just make a keyword int(, but that didn’t work.

        EkopalypseE 1 Reply Last reply Reply Quote 2
        • EkopalypseE
          Ekopalypse @Alexander Seidel
          last edited by

          @Alexander-Seidel

          or like this yes :-) Many roads to Rome I guess :-D

          1 Reply Last reply Reply Quote 0
          • bruhB
            bruh
            last edited by

            self.regexes[(0, self.rgb(79, 175, 239) | SC_INDICVALUEBIT)] = (r’fn[A-Za-z0-9_]+?$|([A-Za-z0-9_]+?$)', 1)

            Will adding ^\w+.(gif|png|jpg|jpeg)$ instead of r’fn[A-Za-z0-9_]+?$|([A-Za-z0-9_]+?$)’ make it work on .gif .png .jpg and .jpeg suffixes?

            EkopalypseE 1 Reply Last reply Reply Quote 1
            • EkopalypseE
              Ekopalypse @bruh
              last edited by

              @bruh said in UDL: Suffix Mode:

              ^\w+.(gif|png|jpg|jpeg)$

              you mean for highlighting?

              bruhB 3 Replies Last reply Reply Quote 0
              • bruhB
                bruh @Ekopalypse
                last edited by

                @Ekopalypse Yeah highlighting the entire word thst contains .gif or the others

                1 Reply Last reply Reply Quote 1
                • bruhB
                  bruh
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • bruhB
                    bruh @Ekopalypse
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • bruhB
                      bruh @Ekopalypse
                      last edited by

                      @Ekopalypse Nvm yet again i just added everything ie [0-9a-zA-Z_/\-.|+-#$!"%&()=?*@'~\ˇ^\˘\°;:,{}\˛`\˙\´\¨\¸\ß\Ł\ł\¤\×\÷\č\ć\ž\đ\p\š\€\§] and it works xD sry for the spam

                      EkopalypseE 1 Reply Last reply Reply Quote 1
                      • EkopalypseE
                        Ekopalypse @bruh
                        last edited by

                        @bruh

                        … and it works

                        Great, if anything is unclear or I can do, let me know.

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