Page 1 of 1

show/edit binary

Posted: Fri Mar 27, 2020 12:30 am
by tolkien
Hiz!

In my evil code I'm using texteditor for displaying text but now I need show binary files but perhaps texteditor is not capable?
Any idea?

thanks!

Re: show/edit binary

Posted: Sat Mar 28, 2020 12:36 pm
by airsoftsoftwair
Binary files are typically shown as hex octets alongside ASCII characters. It should be possible to do this with text editor class but of course you'd have to filter all control characters and show them as "." or something.

Re: show/edit binary

Posted: Sun Mar 29, 2020 1:59 pm
by tolkien
I have it! Was easier than I thought.
Thanks!