I am using Scite every day at work to open files containing NULL characters (that Geany can't open). Scite is based on Scintilla, and it doesn't stop at the first NULL character. I guess it should be possible to open binary files in Geany too ...
On 04/19/11 02:30, Lex Trotman wrote:My idea was for viewing/editing binary files only, but it could be any file really. But mostly I was referring to things like tying in with the document open signal, figuring out if it's a binary file, hijacking the "document open" so it's displayed in GHex/GtkHex, preventing Geany from trying to display it in Scintilla, integration with all the other features like fonts, zooming, printing, etc. That was the point when I decided to just use an external hex viewer for binary files :)
[...]
I thought about writing such a plugin before, but not using Scintilla
directly, I think I even might've wrote a little code for it. I was looking
at using GtkHex[1] and messing with the main documents tab like the Devhelp
plugin does. Getting a hex viewing widget into Geany is pretty easy, but
hooking it in to handle different filetypes and whatnot would probably be a
little harder.
Not sure what you mean by handle filetypes, I thought the point of
something like this would be to handle it as hex, no matter what the
file was?
Cheers,
Matthew Brush
_______________________________________________
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel