• Login
Community
  • Login

.reg function list

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 460 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.
  • K
    kozakmak
    last edited by Jun 8, 2022, 8:20 AM

    v8.4.2

    1. .ini files have a function list, but .reg don’t - bug?
    2. how can i highlight in a different color “%~dp0” in .bat ?
    E 1 Reply Last reply Jun 8, 2022, 10:08 AM Reply Quote 0
    • E
      Ekopalypse @kozakmak
      last edited by Ekopalypse Jun 8, 2022, 10:10 AM Jun 8, 2022, 10:08 AM

      @kozakmak

      .ini files have a function list, but .reg don’t - bug?

      No, it just, until now, nobody had the need to make a PR for it. Copy the ini.xml from the functionList directory as registry.xml. Edit it and rename the two INI Section accordingly to Registry Section. Restart Npp - done.

      how can i highlight in a different color “%~dp0” in .bat ?

      %~dp0 is treated as a variable, so by changing the VARIABLE part of the style configuration you can change the color, which then affects something like %HOST% as well.

      2327ddb4-ab81-4015-9cf3-0fe133ec813c-image.png

      If you want to have a different color than for example %HOST%, then I see only the possibility to use something like the plugin EnhanceAnyLexer. ( Note, I’m the author of this plugin )

      385258a6-8311-4209-a65b-70bbf3505637-image.png

      K 1 Reply Last reply Jun 8, 2022, 12:23 PM Reply Quote 2
      • K
        kozakmak @Ekopalypse
        last edited by kozakmak Jun 8, 2022, 12:24 PM Jun 8, 2022, 12:23 PM

        @ekopalypse

        1. it is displayed incorrectly
          https://fpic.in/ek4Fg36

        2. perfect, thx

        E 1 Reply Last reply Jun 8, 2022, 12:53 PM Reply Quote 0
        • E
          Ekopalypse @kozakmak
          last edited by Ekopalypse Jun 8, 2022, 12:54 PM Jun 8, 2022, 12:53 PM

          @kozakmak

          you are correct, I thought ini and reg files are similar and hence it should work but … it doesn’t.

          I changed the following in the registry.xml

          			<function
          				mainExpr="^\h*\\[.+?\\]"
          			>
          				<functionName>
          					<nameExpr expr=".+" />
          				</functionName>
          			</function>
          

          and it seems to work.

          1e2296f0-7f29-45be-93aa-3aa7197d80fe-image.png

          K 1 Reply Last reply Jun 8, 2022, 1:37 PM Reply Quote 2
          • K
            kozakmak @Ekopalypse
            last edited by Jun 8, 2022, 1:37 PM

            @ekopalypse
            its work
            thx

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