Community
    • Login

    .reg function list

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 438 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.
    • kozakmakK
      kozakmak
      last edited by

      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 ?
      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @kozakmak
        last edited by Ekopalypse

        @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

        kozakmakK 1 Reply Last reply Reply Quote 2
        • kozakmakK
          kozakmak @Ekopalypse
          last edited by kozakmak

          @ekopalypse

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

          2. perfect, thx

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @kozakmak
            last edited by Ekopalypse

            @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

            kozakmakK 1 Reply Last reply Reply Quote 2
            • kozakmakK
              kozakmak @Ekopalypse
              last edited by

              @ekopalypse
              its work
              thx

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