Community
    • Login

    V8.9.1 Cannot get all of UDL to load

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 77 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.
    • Jerry DJ
      Jerry D
      last edited by

      I just got a new computer and I installed the latest Notepad++. However, after I load a couple of UDLs I have for a specific program, pcgen, the new styles do not appear to work, the keywords are still the same. I checked the UDL to make sure it was coded at all (I copied from github) and the keywords and stylers are set with different colors and such. However, the text within the notepad++ screen stays the same basic black, instead of the different colors within the ODL style.
      It works on a previous computer that has been upgraded to the latest Notepad++ but it is a win10 machine and the new computer is to replace it.
      Any help would be appreciated.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Jerry D
        last edited by

        @Jerry-D said in V8.9.1 Cannot get all of UDL to load:

        However, after I load a couple of UDLs I have for a specific program, pcgen, the new styles do not appear to work, the keywords are still the same. I checked the UDL to make sure it was coded at all (I copied from github) and the keywords and stylers are set with different colors and such.

        UDLs work just fine in v8.9.1.

        However, the text within the notepad++ screen stays the same basic black, instead of the different colors within the ODL style.

        Are you sure the UDL is active for the given file?

        Does your status bar, in the lower left, say Normal text file? Or does it say, User Defined language file - NameOfUDL? (If the status bar starts with Length, then you would need to widen your Notepad++ window to see the language field on the far left of the bar)
        e7143fc2-5222-4444-a2a8-b3e166517121-image.png
        vs
        24db1243-08ac-42fb-9ce4-f45a874623b8-image.png
        vs
        12e6c6cb-2b12-428a-adaa-1beb5613dd0e-image.png

        What order did you do things? Did you 1) load file, then 2) import the UDL definition, and 3) see that the file didn’t show up as the UDL? or did you 1) import the UDL definition, and 2) load the file, and 3) see that the file didn’t show up as the UDL?

        Because if the file was already loaded before you imported the UDL into Notepad++, then the application does not do its file-extension check.

        Also, confirm that the UDL definition includes the file extension (with no dot) in its definition, otherwise Notepad++ has no way of knowing you want that language for a given file (unless, of course, you manually select Language > NameOfUDL)

        It works on a previous computer that has been upgraded to the latest Notepad++ but it is a win10 machine and the new computer is to replace it.

        There have been no recent changes to the UDL implementation, so there should be no difference in behavior (UDL is not dependent on Win10 vs Win11… I’ve been using UDL successfully on Win11 for a year now).

        Any help would be appreciated.

        A screenshot of your Language menu, showing the UDL near the bottom of the list would be useful. As would a screenshot of the Language > User Defined Language > Define your language… dialog with your UDL active, (or at least enough of the dialog so that we can see the the Ext.: field), such as: 838a7b87-d963-40dc-97d0-641f2a9f39a5-image.png

        Jerry DJ 1 Reply Last reply Reply Quote 1
        • Jerry DJ
          Jerry D @PeterJones
          last edited by

          @PeterJones
          Here are a few screenshots showing what I have.
          8a17a2b6-a078-4952-845d-9903fbbc3fe9-image.png

          This is how it is currently showing:
          8812c676-2c00-46a0-88ee-b5936ae71937-image.png

          This is the UDL definition with the 1st group showing the styler:
          6dc5d126-e169-443c-a643-8c104597551c-image.png 6da42518-d7f2-4392-8cf1-bf63a275755d-image.png

          If you take a look, the word ABILITYCATEGORY should be in a blue, however in the previous screenshot, it is still a normal black.
          It is taking SOME of the new UDL, but not all of it as you can see the word Background is in a light blue color.

          I have not had to indicate what extension for it to use, I just selected it and that’s the majority of what I use notepad++ for.

          I have tried installing the xml, I have tried just copying the xml into the C:\Users\jagbe\AppData\Roaming\Notepad++\userDefineLangs folder. Neither has worked for me.

          I’m really just wondering if there is some other setting I need to use to get the UDL to work. I don’t remember doing anything else other than what I have done already though.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Jerry D
            last edited by

            @Jerry-D ,

            You need to add : to the Operators 1 list on Operators & Delimiter, so that the UDL text parser can see that the : isn’t meant to be part of the non-keyword string ABILITYCATEGORY: instead of the keyword string ABILITYCATEGORY

            Here’s replicating your issue (with a small example):
            e9dc8ed7-a0a9-4ef6-9524-da69412c6974-image.png
            Note that ABILITYCATEGORY, Background, VISIBLE, and QUALIFY are all defined as keywords, but none are highlighted.

            Now edit Operators & Delimiter > Operators 1 list (with operator style set RED to make it obvious):
            31e1f3d6-6108-47e2-ab2c-0510807e80b8-image.png

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