Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

HexEdit plugin

<< < (8/11) > >>

byo:

--- Quote from: mariocup on October 07, 2008, 01:10:26 pm ---- Optional: There could be a file mask for HexFiles which the user selects

--- End quote ---

We would have to change this in the core code since sdk doesn't allow adding custom extensions (good candidate for feature request ? ;) )


--- Quote ---- Since CB then would pop-up (What to do dialogue) the user should be able to select:
...
Open with CB editor
Open with HexEditor (new entry)

--- End quote ---

That would confuse usual users which doesn't need the hex editor at all.


--- Quote ---optional: If possible then the file extension handler would register the extension with the HexEditor and opening these files will result in a Hex-view.

--- End quote ---

This could be done, but I wanted HexEditor to open all types of files (including those that are opened in standard editor like .cpp or anything else).

Anyway, which extensions did you want to be opened by hexeditor by default ?


--- Quote ---I personally would prefer to have a context menu like Swap HexEditor/Editor to access the HexEditor.

--- End quote ---

Do you mean like switching between header and source file ?


Regards
   BYO

mariocup:

--- Quote ---This could be done, but I wanted HexEditor to open all types of files (including those that are opened in standard editor like .cpp or anything else).

Anyway, which extensions did you want to be opened by hexeditor by default ?

--- End quote ---

Perhaps *.bin; *.hex; *.elf; *.exe; ???


--- Quote ---Do you mean like switching between header and source file ?

--- End quote ---

Exactly.

Sometimes it is useful to have a fixed number of columns in the hex-editor to see e.g. a multiple of 16-Byte in a row. Is this feature already available in the HexEditor?

Bye,

Mario

webbesen:
I really like the Hexeditor. Nice work.
However as Mario already suggested it would be great to be able to specify how many bits/bytes to show in a row.

danselmi:
Hi

Isn't it is possible to extend CB that it opens *.bin, *.elf ... within the hex editor if the hex
editor implements the mime plugin interface (deriving from cbMimePlugin) and say it can open .bin .elf..
and create a lexer configuration like this?

--- Code: ---<?xml version="1.0"?>
<!DOCTYPE CodeBlocks_lexer_properties>
<CodeBlocks_lexer_properties>
<Lexer name="HexEditor binary"
index="20"
filemasks="*.bin,*.elf,*.exe">
</Lexer>
</CodeBlocks_lexer_properties>
--- End code ---

So CB shows the entry in the file open dialog.

regards danselmi

byo:

--- Quote from: webbesen on October 30, 2008, 11:27:08 pm ---I really like the Hexeditor. Nice work.
However as Mario already suggested it would be great to be able to specify how many bits/bytes to show in a row.

--- End quote ---

Already working on that, but it turned out not to be so easy task (I don't want to make some ugly workarounds ;) ). Just don't have much free time now :(


--- Quote from: danselmi on October 31, 2008, 11:48:40 am ---Isn't it is possible to extend CB that it opens *.bin, *.elf ... within the hex editor if the hex
editor implements the mime plugin interface (deriving from cbMimePlugin) and say it can open .bin .elf..

--- End quote ---

Making C::B automatically open those exstensions you request is easy task. The problem is that even if you register mime plugin, registered extensions won't show up in the file open dialog - you'll have to select "Show all file types" or something like this.

Regards
   BYO

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version