• Login
Community
  • Login

User Defined Language - Keywords

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 1.5k 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.
  • R
    Randy DiCotti
    last edited by Apr 15, 2019, 8:06 PM

    NotePad++ v 7.6
    User Defined Language 2.0.1.12

    The problem is, it doesn’t seem to work?

    On this line of code, I try to make the word FindNoCase blue, but it seems to ignore it. Any idea why?

    ** <CFSET markerbeginloc=#FindNoCase(“Select”, rawfile, beginloc)#>**

    M 1 Reply Last reply Apr 15, 2019, 10:29 PM Reply Quote 0
    • M
      Meta Chuh moderator @Randy DiCotti
      last edited by Meta Chuh Apr 15, 2019, 10:31 PM Apr 15, 2019, 10:29 PM

      welcome to the notepad++ community, @Randy-DiCotti

      if you see FindNoCase in blue, but #FindNoCase in black, but you want to see both in blue, you have the following options:

      1. add #FindNoCase to your keyword group, so it contains both FindNoCase and #FindNoCase.

      or

      2. use # as a prefix highlighter:

      • use an additional keyword group with # as keyword.
      • enable prefix mode on this additional keyword group.
      • set the colour to your favourite blue.
      1 Reply Last reply Reply Quote 1
      • R
        Randy DiCotti
        last edited by Apr 15, 2019, 10:54 PM

        Hi,
        The problem is neither are in Blue even though it’s set that way. Do I need to upgrade the User Defined Language version?

        M 1 Reply Last reply Apr 15, 2019, 11:09 PM Reply Quote 0
        • M
          Meta Chuh moderator @Randy DiCotti
          last edited by Meta Chuh Apr 15, 2019, 11:10 PM Apr 15, 2019, 11:09 PM

          @Randy-DiCotti

          no, you don’t have to upgrade, as udl is still the same version 2.1.0.12.

          you have to define operators like =, (and ) as operators 1.
          otherwise it would require a space between = and FindNoCase and the opening (.

          tested with:

          <CFSET markerbeginloc=#FindNoCase("Select", rawfile, beginloc)#>
          and
          <CFSET markerbeginloc=FindNoCase("Select", rawfile, beginloc)#>
          
          1 Reply Last reply Reply Quote 1
          • R
            Randy DiCotti
            last edited by Apr 15, 2019, 11:18 PM

            Thanks for the assist Mr. Chuh.

            I’ll work with your suggestions and see if I can get it to work.

            Best Regards

            1 Reply Last reply Reply Quote 0
            • R
              Randy DiCotti
              last edited by Apr 15, 2019, 11:51 PM

              I think the underlying problem I’m having is that the UDL configurator seems to have no effect on the text in the editor.

              M 1 Reply Last reply Apr 16, 2019, 12:00 AM Reply Quote 0
              • M
                Meta Chuh moderator @Randy DiCotti
                last edited by Apr 16, 2019, 12:00 AM

                @Randy-DiCotti

                you have to set your document to your udl at the language menu.
                make sure you see your udl name at the bottom left, like the udl name test at the screenshot below.

                also the user language at the udl dropdown menu, also seen at the screenshot, has to match the language of your file.

                if everything is correctly set, any changes at the udl editor will be seen instantly, without exiting the udl editor.

                Imgur

                1 Reply Last reply Reply Quote 0
                • R
                  Randy DiCotti
                  last edited by Apr 16, 2019, 3:51 AM

                  Thank you VERY much Mr. Chuh. I think I’m beginning to get the hang of it thanks to your patience. It’s a very powerful interface. Listing all the delimiters first seems to have been the key.

                  What does the ESCAPE box do and how its it used? I downloaded the GUIDE and I’m studying it.

                  Best Regards

                  1 Reply Last reply Reply Quote 2
                  • R
                    Randy DiCotti
                    last edited by Apr 16, 2019, 1:45 PM

                    Made a $10.00 donation to the project. Thanks again for the help

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