User Defined Language - Keywords

  • NotePad++ v 7.6
    User Defined Language

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

  • 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.


    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.

  • 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?

  • @Randy-DiCotti

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

    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)#>
    <CFSET markerbeginloc=FindNoCase("Select", rawfile, beginloc)#>

  • Thanks for the assist Mr. Chuh.

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

    Best Regards

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

  • @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.


  • 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

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

Log in to reply