Community
    • Login

    Option to hide nuls and other non-text

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 2.3k 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.
    • VictorOnrustV
      VictorOnrust
      last edited by

      Would be nice if there is an option to view (read only?) a file with nuls and other non-text hidden.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @VictorOnrust
        last edited by

        @VictorOnrust

        Notepad++ is a text editor, and, as such, doesn’t deal with non-text files all that well. And that’s what you’re really talking about: non-text files. So while I somewhat understand what you are asking for, my response is to say “don’t do it”. Perhaps others have different viewpoints.

        1 Reply Last reply Reply Quote 1
        • guy038G
          guy038
          last edited by

          Helo, @victoronrust and all,

          A possible work-around would be to delete, TEMPORALLY, any character, displayed in inverse video, but the normal line endings :

          • Open the Replace dialog ( Ctrl + H )

            • SEARCH (?!\r|\n)[\x00-\x1F\x80-\x9F\x{2028}\x{2029}]

            • REPLACE Leave EMPTY

            • Tick the Wrap around option

            • Select the Regular expression search mode

            • Click on the Replace All button

          • Press the Esc key to close the Replace dialog


          Once, you thoroughly studied your file contents, just do a Ctrl + Z action to get the initial text ;-))

          Best Regards,

          guy038

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