[Geany-devel] hex mode
mbrush at xxxxx
Tue Apr 19 07:32:29 UTC 2011
On 04/19/11 00:12, Lex Trotman wrote:
> On 19 April 2011 16:50, Frank Lanitz<frank at frank.uvena.de> wrote:
>> Am 14.04.2011 22:29, schrieb Liviu Andronic:
>>> Does Geany have a hex mode, that is can I open files in hex mode?
>>> And a bit more OT, Geany refuses to force-open a PDF file. Nano, for
>>> example, opens the PDF. Is it normal?
>> As already mentioned, this is intended behavior due Scintilla. But maybe
>> this could be a cool feature for Scintilla in general.
> I don't think that there would be enough demand for Scintilla to break
> clients, but there is nothing stopping a Geany plugin converting a
> file to hex codes before loading it into Scintilla and converting it
> back again when saving (well except someone has to write it :-).
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 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.
More information about the Devel