Preferences

To configure GHex, choose Edit ▸ Preferences. The Preferences dialog contains the following tabbed sections:

4.1. Editing

Maximum number of undo levels

Use this spin box to specify the maximum number of edits that you can undo.

Show cursor offset in statusbar as

Use this drop-down list to select the format in which the cursor offset is displayed. The format can be decimal, hexadecimal, or a custom print style string that only contains the format specifiers x, o, and s.

Show offsets column

Select this option to display the cursor offsets in a column to the left of the hexadecimal view of the GHex window.

4.2. Display

Font

Use the font selector list boxes to edit the existing font information or type new font information. Specify a font type, style, and size to display the contents of files in GHex.

Default Group Type

Select one of the following options to specify how GHex displays the hexadecimal content of a file in the GHex window:

  • Bytes - single bytes
  • Words - groups of two bytes
  • Longwords - groups of four bytes

4.3. Printing

Data font

Click on the Data font button to specify the font type, style, and size to use to print the data contained in a file.

Header font

Click on the Header font button to specify the font type, style, and size to use to print the header information that is contained in the file.

Print shaded box over

Use this spin box to specify the number of lines that GHex alternately prints with a surrounding shaded box. If the value of the spin box is 10, GHex prints the first 10 lines of the file without a shaded box, the next 10 lines with a shaded box, and so on. If the value of the spin box is 0, GHex does not print any shaded box.