Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    User Defined Language - Keywords

    General Discussion
    2
    9
    1044
    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 DiCotti
      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 Chuh 1 Reply Last reply Reply Quote 0
      • Meta Chuh
        Meta Chuh @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 DiCotti
          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 Chuh 1 Reply Last reply Reply Quote 0
          • Meta Chuh
            Meta Chuh @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 DiCotti
              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 DiCotti
                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 Chuh 1 Reply Last reply Reply Quote 0
                • Meta Chuh
                  Meta Chuh @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 DiCotti
                    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 DiCotti
                      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
                      • First post
                        Last post
                      Copyright © 2014 NodeBB Forums | Contributors