Community
    • Login

    User Defined Language - Keywords

    Scheduled Pinned Locked Moved General Discussion
    9 Posts 2 Posters 2.3k Views 1 Watching
    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.
    • Randy DiCottiR Offline
      Randy DiCotti
      last edited by

      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)#>**

      Meta ChuhM 1 Reply Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @Randy DiCotti
        last edited by Meta Chuh

        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
        • Randy DiCottiR Offline
          Randy DiCotti
          last edited by

          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?

          Meta ChuhM 1 Reply Last reply Reply Quote 0
          • Meta ChuhM Offline
            Meta Chuh moderator @Randy DiCotti
            last edited by Meta Chuh

            @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
            • Randy DiCottiR Offline
              Randy DiCotti
              last edited by

              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
              • Randy DiCottiR Offline
                Randy DiCotti
                last edited by

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

                Meta ChuhM 1 Reply Last reply Reply Quote 0
                • Meta ChuhM Offline
                  Meta Chuh moderator @Randy DiCotti
                  last edited by

                  @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
                  • Randy DiCottiR Offline
                    Randy DiCotti
                    last edited by

                    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
                    • Randy DiCottiR Offline
                      Randy DiCotti
                      last edited by

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

                      1 Reply Last reply Reply Quote 2

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors