Scite Hex Edit

lua-users home
wiki

SciTEHexEdit 是一個基本十六進位檢視器和編輯器,可做為 SciTE 編輯器的 Lua 擴充程式撰寫。

說明:這是 SciTE 的基本十六進位檢視器和編輯器,僅使用 Lua 指令碼擴充程式,無需使用其他工具。可執行瀏覽、編輯和儲存作業。有一個十六進位窗格和一個 ASCII 窗格。十六進位編輯器會自動以等寬字元模式開啟,並會顯示色彩,同時變更會以反白顯示。主控台視窗可讓您輸入複雜的指令。還有一個說明畫面。

下載: http://sl-hexedit.luaforge.net/

專案頁面: http://luaforge.net/projects/sl-hexedit/

範例緩衝區顯示

. SciTE Hex Editor . ver 0.10 . 20061011 .
+---------+--------+---------+--------+--------+--------+---------+------+
| Refresh | Revert | FirstPg | PrevPg | NextPg | LastPg | Console | Help |
+---------+--------+---------+--------+--------+--------+---------+------+
+--------+-------------------------------------------------+----------------+
| Offset | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F |   ASCII view   |
+--------+-------------------------------------------------+----------------+
|00000000| 23 20 47 6C 6F 62 61 6C 20 69 6E 69 74 69 61 6C |# Global initial|
|00000010| 69 73 61 74 69 6F 6E 20 66 69 6C 65 20 66 6F 72 |isation file for|
|00000020| 20 53 63 69 54 45 0A 23 20 46 6F 72 20 4C 69 6E | SciTE # For Lin|
|00000030| 75 78 2C 20 70 6C 61 63 65 20 69 6E 20 24 70 72 |ux, place in $pr|
|00000040| 65 66 69 78 2F 73 68 61 72 65 2F 73 63 69 74 65 |efix/share/scite|
|00000050| 0A 23 20 46 6F 72 20 57 69 6E 64 6F 77 73 2C 20 | # For Windows, |
|00000060| 70 6C 61 63 65 20 69 6E 20 73 61 6D 65 20 64 69 |place in same di|
|00000070| 72 65 63 74 6F 72 79 20 61 73 20 53 63 69 54 45 |rectory as SciTE|
|00000080| 2E 45 58 45 20 28 6F 72 20 53 63 31 2E 45 58 45 |.EXE (or Sc1.EXE|
|00000090| 29 0A 23 20 44 6F 63 75 6D 65 6E 74 61 74 69 6F |) # Documentatio|
|000000A0| 6E 20 61 74 20 68 74 74 70 3A 2F 2F 77 77 77 2E |n at http://www.|
|000000B0| 73 63 69 6E 74 69 6C 6C 61 2E 6F 72 67 2F 53 63 |scintilla.org/Sc|
|000000C0| 69 54 45 44 6F 63 2E 68 74 6D 6C 0A 0A 23 20 47 |iTEDoc.html  # G|
|000000D0| 6C 6F 62 61 6C 73 0A 0A 23 20 57 69 6E 64 6F 77 |lobals  # Window|
|000000E0| 20 73 69 7A 65 73 20 61 6E 64 20 76 69 73 69 62 | sizes and visib|
|000000F0| 69 6C 69 74 79 0A 69 66 20 50 4C 41 54 5F 57 49 |ility if PLAT_WI|
+--------+-------------------------------------------------+----------------+
+---------------------------------------------------------------------------+
| d:\bin\wscite\SciTEGlobal.properties                          (unchanged) |
+---------------------------------------------------------------------------+
|    / (FirstPg) [ (Prev1K) - (PrevPg) + (NextPg) ] (Next1K) * (LastPg)     |
|    . or ` (Console Mode) N (Find Next) H (Help Screen)                    |
+---------------------------------------------------------------------------+

說明畫面

--- Edit Window Help ---

Keypress navigation is recommended. Double-click "buttons" or press
[Space] with the caret on the desired button. Use the console window,
accessed using a period (.) or a backtick (`), for other commands. See
the bottom of the edit window for keypress commands. Also, [Enter]
moves one line down in the edit columns, and [Space] moves the caret
to the next byte in the hex data column.

SciTEHexEdit starts by: (1) loading the file in the current buffer,
ignoring unsaved changes, or (2) using the contents of the untitled
and unsaved buffer. The edit view is automatically positioned where
the caret was in the current buffer.

- Offset column:
Pressing a valid digit changes the address of the page in view, and
the editor will jump to the block in question.

- Hex data column:
Pressing a valid digit changes data in the file. To make the changes
permanent, save the file. Use "revert" to undo.

- ASCII data column:
Pressing a character changes data in the file. Changes can then be
saved or dropped. Not all characters can be entered, because some
keypresses are handled only by SciTE itself.

Data is colour-coded. Unsaved changes are highlighted in yellow. To
customize SciTEHexEdit further, please modify the Lua script itself.

@ Press H again to return to the previous screen...

主控台視窗

--- SciTE Hex Editor Console ---

Enter single commands at prompt line only. Most commands closes the
console window on successful execution. Adding a "-" as a suffix will
stop the console window from closing, e.g. "save-". Commands (which
are case insensitive) are:

  cls                           goto <dec|hex>
  info                          load <filename>
  revert                        save|saveas [<filename>]
  float <float|hex>             number <dec|hex|"string">
  strings                       search <hex|'string'|"regexp">
  exit|close                    help help|about|console|edit|<cmd>

RecentChanges · 偏好設定
編輯 · 歷程
最後編輯時間 2009 年 10 月 31 日 下午 7:29 GMT (diff)