|
A File Interface is an important concept in 010 Editor. Every file that is loaded is assigned a File Interface and this interface controls how that file is displayed and edited. A File Interface includes the Font, Character Set, Linefeeds, Tabs, Addresses, Group By, Division Lines, Areas, Highlighting, Ruler, Status Bar, and Endian settings for a file (basically all options listed at the top of the View Menu). The name of the current file's File Interface is displayed in the Edit As drop-down list as shown below. A different File Interface can be applied to the current file using the Edit As drop-down list or the 'View > Edit As' menu.
File Interfaces may be either text-based, where the Text Editor Window is used to edit the file, or hex-based, where the Hex Editor Window is used to the edit the file. Edit the current interface from the View Menu or from the Tool Bars (some, but not all, options can be edited using the File Interface Options dialog as well). Modifying an option for one file modifies that option for all files that use that interface. Any changes to the interface are automatically saved when 010 Editor exits so the interface will appear the same the next time the program loads.
Multiple interfaces can be generated for files and assigned automatically when a file loads. For example, 010 Editor can be configured to always open a file with a certain file extension in Big Endian mode or with the EBCDIC character set. To create new interfaces use the 'View > Edit As' menu (see the View Menu for more information) or the File Interface Options dialog (see File Interface Options dialog). The 'View > Edit As' menu contains a list of all available File Interfaces and a checkmark will be placed beside the currently active interface. For more options on how File Interfaces are assigned to files see the Editor Options dialog.
The following list indicates all attributes that are stored with the File Interface:
- Font - Controls the font type, size, and style that are used in the editor.
- Character Set - Sets which character set is used to display data in a character area (ASCII, ASCII+OEM, ASCII+ANSI, EBCDIC, Unicode, UTF-8, Macintosh, or various international character sets).
- Linefeeds - Specifies how 010 Editor breaks the file into a set of lines. If the linefeeds are set on Auto-Detect then the interface is considered to be a text-based File Interface. If the linefeeds are set on a fixed size (e.g. 16 bytes per line) the interface is considered to be a hex-based File Interface. When using a fixed number of bytes per line, the program can automatically determine the maximum number of bytes to display in the window by choosing the Fixed Auto option.
- Tabs/Whitespace - When editing text files the Tabs setting controls how far apart the tab stops are in a file. When a tab character is encountered in a file the next character is displayed at the next tab stop position. The Tabs option also controls how many characters are inserted when the Tab key is pressed. 010 Editor can be set to insert spaces instead of tabs (the default) as well.
- Addresses - Controls whether the addresses on the left side of the editor are displayed in hex format, decimal format, octal format, or whether the current line number is displayed. The line number can also display the current sector number when editing hard drives or can be hidden altogether.
- Group By - Sets how many bytes are grouped together in the Hex Editor Window (the default is one).
- Division Lines - 010 Editor can draw a set of lines on the Hex Editor Window to visualize how different bytes are grouped together. There are two types of lines that can be drawn: Division Lines and Sector Lines. By default, a division line is drawn every 4 bytes in a light-gray color and a sector line is drawn for each sector in a dark-gray color when editing hard drives. See the View Menu for more information on Division Lines.
- Left Area - Controls which numeric format is displayed in the left area of the Hex Editor (Hex, Char, Octal, Binary, or Decimal). This option is fixed as Char for text editing.
- Right Area - Controls which numeric format is displayed in the right area of the editor (Hex, Char, Octal, Binary, Decimal, or Hide). This option is fixed as Hide for text editing.
- Highlighting - Controls which bytes are highlighted in the editor. A number of highlighting schemes are available by default but more can be generated through the Highlight Options dialog. Different syntax highlighting rules can also be applied to text data.
- Ruler - Specifies whether the Ruler is displayed at the top of the Editor Window and the units of the Ruler can be controlled as well.
- Status Bar - Sets what format to display the current file position, file size, and selection size as seen in the status bar.
- Endian - Controls which byte-ordering is used for the current editor (see Introduction to Byte Ordering).
See the View Menu for more details about each option.
|