Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.53k stars 173 forks source link

where to find a plugin for hexEditor? #5253

Closed CatcaptainTeam closed 1 year ago

CatcaptainTeam commented 1 year ago

Hex Editor is very common and useful function for programmers. However, there is only a plugin for hex readonly which is "Hex dump". May anyone develop a plugin for Hex Editor?

Alexey-T commented 1 year ago

no such plugin exists. and there is factor which prohibites such a plugin. for ex, plugin activates in normal editor mode, it can read current selection pos, and can show dialog to enter any bytes which overwrite current selection. but factor is: it's not allowed to enter ANY bytes to file. file saving will use eg UTF8 encoding and this encoding allows only certain byte sequences. many other encodings allow only certain byte sequences too (except 1-byte encodings).

so plugin must work out of the editor mode, ie like the current hex viewer. so it will look like new application.

CatcaptainTeam commented 1 year ago

Thanks for reply. Hex editing is used for specific data files. for example, the structured data which is stored in the flash chip. This type of file is not text style but bin style.  it's common to modify this type of file byte by byte during embedded programming.

------------------ 原始邮件 ------------------ 发件人: "Alexey-T/CudaText" @.>; 发送时间: 2023年10月23日(星期一) 下午5:38 @.>; @.**@.>; 主题: Re: [Alexey-T/CudaText] where to find a plugin for hexEditor? (Issue #5253)

no such plugin exists. and there as factor which prohibites such a plugin. for ex, plugin can read current selection pos, and show dialog to enter any bytes which overwrite current selection. but factor is: it's not allowed to enter ANY bytes to file. file saving will use eg UTF8 encoding and this encoding allows only certain byte sequences.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

CatcaptainTeam commented 1 year ago

Notepad++ could do it. It has a plugin named hex editor.

------------------ 原始邮件 ------------------ 发件人: "Alexey-T/CudaText" @.>; 发送时间: 2023年10月24日(星期二) 下午3:40 @.>; @.**@.>; 主题: Re: [Alexey-T/CudaText] where to find a plugin for hexEditor? (Issue #5253)

any other text editor can do this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Alexey-T commented 1 year ago

Notepad++ plugin is nice. we don't have plugin like this. i will close the issue in few days if noone appears who wants to write the code (Python or Pascal).