I initially thought I'd found a bug, but searching the forums I found this
thread, so I thought I should bump it up and add my own comment.  

Like MrSpock I also got confused by PSPad when I switch from text to hex and
back to text mode.  The file I chose had binary zeros in the first few bytes.
When this file is opened as text PSPad shows many lines of content, with a thin
rectangle for the binary zeros, switch to hex and the screen displays no file
content - as if the file is empty. Try and switch back to text and the screen
still show no content?

When I open the same file as Hex (from the context menu) the hex image of the
file show the content I expect.  However when I try to switch to view text mode
the option is disabled?  Fair enough I suppose as the fie was opened in hex, but
as the user and owner of the file I wanted to see what valid text there was in
it. I have AutoDetectBinary=0 in the program settings if that affects this
behaviour.

I agree with MrSpock that doing away with "partial hex mode" would be a good
idea, as I was expecting to be able to flip flop my view of the file between
text and hex.  I understand that this can be dangerous, and is possibly more so
in the Unicode world.  If you don't want to do away with partial hex mode, how
about some hint or warning message suggesting to the user that re-opening as hex
would be a better way to edit/view the file when they try to switch such a file
into hex mode?

-- 
RJW

<http://forum.pspad.com/read.php?2,46580,48342>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem