automaticly changing hex00 into hex20 - why?
-
Hi,
since many years there’s a feature: in file are some hex20.
if I’m copying or removing line, blocks or anything else, the editor ist changing them all to hex20 (a normal blank). but I do need my special blanks in form of hex00. I do need them really! ;-)is it above a automatic feature? can we do one setting, were we can put it off?
every time I have this problem, I must use CRiSP. CRiSP doesn’t kill me my hex00-signs ;-)Thanks a lot, Yours Klaus
-
you have to use the special copy/paste in np++ for binary, non ascii or mixed contents:
menu bar > edit > paste special > copy binary content
and
menu bar > edit > paste special > paste binary contentif you need it often, you can set a custom keyboard shortcut on copy and paste binary content
-
Hi, @klauss-lehmann and All,
Additional information to the excellent method of @meta-chuh :
-
Firstly, contrary to any other character, you cannot insert NUL characters, either, with any of these
3ways :-
Alt + nnn, wherenare digits, pressed on the numeric keypad (OEMencoding ) -
Alt +0nnn, where 0 andnare digits, pressed on the numeric keypad (ANSIencoding ) -
Alt+ the+( on Numeric keypad ) +hhhh, wherehare hexadecimal chars (UNICODEencoding ) :-
The letters, from
atof, typed on the main keyboard -
The digits, from
0to9, typed on the numeric keypad
-
-
So, the only way is to use the Character Panel (
Edit > Character Panel) and, then, to double-click on the first line0 00 NULLin order to insert a single NUL character, at cursor location
Secondly, the present regex engine of N++, can handle the NUL characters in search, without any trouble, using the regexes :
\0or\x00or\x{00}or\x{0000}or\N{NUL}or\c@or\cUnfortunately, in replacement, there’s, indeed, no mean to insert a NUL character :-(( A work-around is possible, using a local installation of N++
v6.9.0and a modified version of the Scintilla library (SciLexer.dll). Refer to LAST part of this FAQ post :https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1
Best Regards,
guy038
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login