Community
    • Login

    User defined language not colour keywods and numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 79 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.
    • waroftitans remoteW
      waroftitans remote
      last edited by waroftitans remote

      Hi.

      I tried to create an user defined language highlights, and for some reason, the colors didn’t show up. I tried to uninstall and reinstall the program. I have the v8.7.9 (64bit) version of notepad++
      I checked out the global override and its not forced to rewrite the style.
      Here an image showed how I configured it.
      notpadplusplusproblem.png

      Thanks for any help.

      Edit: here is the debug info:

      Notepad++ v8.7.9   (64-bit)
      Build time : Mar 26 2025 - 03:20:28
      Scintilla/Lexilla included : 5.5.5/5.4.3
      Boost Regex included : 1_85
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : "C:\Program Files\Notepad++\change.log" 
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      Periodic Backup : ON
      Placeholders : OFF
      Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
      Multi-instance Mode : monoInst
      File Status Auto-Detection : cdEnabledNew (for current file/tab only)
      Dark Mode : OFF
      OS Name : Windows 10 Pro N (64-bit)
      OS Version : 22H2
      OS Build : 19045.4529
      Current ANSI codepage : 1250
      Plugins : 
          mimeTools (3.1)
          NppConverter (4.6)
          NppExport (0.4)
      
      
      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @waroftitans remote
        last edited by

        @waroftitans-remote ,

        Two things:

        1. Make sure the lower-left on status bar says it’s UserDefinedFile - playground gui – if you create your UDL after naming the file, Notepad++ doesn’t notice the UDL’s ext.: pgui so doesn’t automatically pick that UDL this time. If you save, close the file, and re-open, it will auto-detect it as belonging to that UDL.

        1f6c518c-9a11-446e-927e-abd673df8e0b-image.png

        1. the , immediately next to the keyword interferes – for now. If you go to Operators & Delimiters and add the comma to the Operators 1 list, then Notepad++ knows that the , is an operator and not part of a keyword, and then is able to recognize widget and colour as keywords in two different categories:

        3c7b8bd2-1010-4f41-9512-ff524d21acde-image.png

        waroftitans remoteW 1 Reply Last reply Reply Quote 4
        • waroftitans remoteW
          waroftitans remote @PeterJones
          last edited by

          @PeterJones
          Thanks for your reply.
          Adding the comma to the operators solved the problem.

          Thank you.

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