Community
    • Login

    Registry comment lines wrapping

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 331 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.
    • dondolarsonD
      dondolarson
      last edited by

      How can I change this kind of behavior, to not wrap multiple comment lines into the previous registry entry but the next entry?
      I was playing around with the langs.xml file in %USERPROFILE%\AppData\Roaming\Notepad++ folder and the line <Language name=“registry” ext=“reg” commentLine=“;;” commentStart=“” commentEnd=“”> and changed it to ex. commentStart=“” commentEnd=“::” , removing these two and many more, but couldn’t change this. Not possible?

      Notepad++ registry.png

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

        @dondolarson ,

        Sorry to be the bearer of bad news. There is no setting to affect that – the behavior of the code folding is defined in the source code of the register-file-type lexer, and is not configurable in the XML configuration files.

        Further, though you may think of the comments as belonging to the next section, technically, a registry-file section starts with the [...] line, not with the comment before it, so it is doing the technically-correct thing, even if that’s not how people normally treat the comments in the registry files.

        1 Reply Last reply Reply Quote 2
        • dondolarsonD
          dondolarson
          last edited by

          No problem, I understand. It is how it is. Thank you for your explanation and fast reply.

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