# Chapter 8. Customize

The "Customize" dialog box allows the user to tune the KHexEdit behavior. The most likely to be used customize controls have been placed in the `View` menu while the rest are located in the "Customize" dialog box. The options in the `View` menu are described in another section.

The dialog consist of six pages. A page is activated by selecting the corresponding entry in the list in the left area of the dialog box. Settings that have been chosen will only become valid after the "`OK`" or "`Apply`" buttons have been pressed. Only the settings managed by the active page are then changed. The factory default settings are restored by using "`Default`" button. Note: You must activate "`OK`" or "`Apply`" after "`Default`" to actually use the default values. Pressing "`Cancel`" will close the dialog box without updating the the settings.

# 8.1. Layout

This page contains layout options for the editor window.

Default line size

  The number of bytes that are displayed in a horizontal line in the editor. Both the primary and secondary view (if visible) will display this number of bytes. The value is automatically used when a mode is selected from the `View` menu.

Column size

  The number of bytes that are grouped together in the primary view. Normal values are 1, 2 and 4. In "text only" mode, this value is always the same as the line size.

Both Default line size and Column size can use different values for all four view modes. The values are assigned to the mode displayed by the selector above the entries.

Line size is fixed

  When this option is disabled, the editor will automatically resize the displayed data so that no horizontal scrollbar is required (except for a very narrow editor). This combined with a maximized window (and possible a small font) enables KHexEdit to display large amounts of data.

Lock column at end of line

  When this option is enabled, a column of data will always be displayed as a whole. When disabled (this option will only have effect when the Column size is larger than 1 and Line size is fixed is disabled) a part of the column will be displayed at the end of the line once there is space to display it, while the rest of the column is moved to the next line.

Gridlines between text

  This options allows vertical or horizontal lines or both to be displayed between the text. The vertical lines will only be displayed in the Primary View. If the Primary View is set to "Text only" mode, the vertical lines will be hidden even there.

Left separator width

  Sets the width of the vertical separator between the offset area and the primary view.

Right separator width

  Sets the width of the vertical separator between the primary and secondary view.

Separator margin width

  Sets the width between the nearest character and the separator edge.

Edge margin width

  Sets the width between the nearest character and the edge of the editor window.

Column separation is equal to one character

  When selected each column is separated by the width a single character would have used. If not, the value in Column separation is used.

Column separation

  See above.