I was using Kate to edit some data but needed to see if some lines had x’00’ (nulls) embedded but cold not find any option to display nulls.
Is this possible in Kate?
Stuart
I was using Kate to edit some data but needed to see if some lines had x’00’ (nulls) embedded but cold not find any option to display nulls.
Is this possible in Kate?
Stuart
Kate is a text editor. Hex 0 indicates end of string/eof. Having this in the middle of a document - I would say - disqualifies it as a text file, and can seriously confuse a text editor. It looks like Kate handles this by omitting the invalid character.
Interestingly while Kate do not display them, you can still search for this value using regexp “\0” (and replace)
OK thanks, my issue was that this was a text file but was (due to a bug) created with 64 nulls at the start of a line of text which of course did not show, but when read by a program the nulls confused it! For future reference Notepasqq on Linux does have the option to show nulls. That is what I expected in Kate - an option not a default.
Stuart
For me in Kate unprintable characters, including nulls, show as an empty rectangle. If I click Edit - Input modes and check vi-mode, and move the cursor onto the null, and type ga, at the bottom right kate tells me “NUL” (or whatever the character is). (If the bottom right says VI: INSERT MODE, press escape to get to VI:NORMAL MODE.)
I wonder if there’s a non-vi input mode to do this in kate, or maybe one of the Tools, Modes.
Or you could just use vim… or use xxd to show the file in binary; if one edits the binary, xxd can go backwards from the text to binary.