File Type Editor Options

On the Editor Options tab in the file types configuration screen, you indicate the default editor options for each file type. Most of these options can be changed for individual files via the Options menu. The Options menu only affects a single file. The file type configuration sets the default.

Text Layout

In EditPad, a "text layout" is a combination of settings that control how text is displayed and how the text cursor navigates through that text. The settings include the font, text direction, text cursor behavior, which characters are word characters, and how the text should be spaced.

You can select two text layouts for each file type. The "default text layout" is used when you first open a file of this file type. It can be a left-to-right or right-to-left text layout. The "layout for opposite text direction" is used when you turn on Options|Right-to-Left. This layout must be right-to-left if the default is left-to-right, and left-to-right if the default is right-to-left.

You can select previously configured text layouts from the drop-down lists. Click the Edit button next to the list to edit the text layout configurations. The list of text layouts is shared by all file types. If you edit a text layout configuration that is used by multiple file types, the changes apply to all those file types.

See the section describing the Options|Text Layout menu item for a full explanation of the text layout configuration screen.

Line and Column Numbers

Turn on "show line numbers" to have EditPad display a number before each line in the left margin. In that case, you need to indicate if you want visible lines or physical lines to be numbered. This only makes a difference when word wrapping is on. When numbering visible lines, each line is counted, including lines created by the word wrapping. When numbering physical lines, the lines are numbered as if word wrapping would be off. You can toggle line numbering for a single file with Options|Line Numbers.

Turn on "show column numbers" if EditPad should display a horizontal ruler above the file indicating column numbers. You can toggle this for a single file with Options|Column Numbers. Column numbers are only displayed when using a fixed-width font.

In the box labeled "vertical rulers to the left of specific columns" you can enter a comma-delimited list of column numbers. EditPad will draw a vertical line to the left of the columns you enter. This makes it easier to work with files that use a columnar layout. You can put a + before a number to make that column relative to the previous column. E.g.: 10,+5,+5,37,+7,+12 would be equivalent to 10,15,20,37,44,56.

Word Wrap

The word wrap setting determines what happens with lines that are too long to fit inside EditPad's window. If you don't want long lines to wrap, they will extend beyond EditPad's window and be partially invisible. A horizontal scroll bar will appear.

You can make long lines wrap either at the edge of EditPad's window, or at a specific line length. When wrapping at the window edge, lines will be automatically re-wrapped when you resize EditPad. When wrapping at a specific line length, horizontal scrolling may still be needed if the specified length doesn't fit inside EditPad's width.

It is usually convenient to wrap at the window edge, as it eliminates the need for horizontal scrolling. You'll probably want to turn it off for files that use a line-based structure such as software source code, so the word wrapping doesn't confuse your view of the lines. Note that EditPad's word wrapping is fully dynamic. Line breaks introduced by the word wrapping are not saved into the file at all, unless you use Convert|Wrapping -> Line Breaks. So there's no risk at data loss when turning on word wrap for line-based files.

If you turn on "wrapped lines should maintain indentation", lines created by the word wrapping will be indented by the same amount as the line they were broken off from. If you turn it off, wrapped lines will start at the first column regardless of the indentation of the original line. Turning on this option is useful when turning on word wrap for files using nested block structures, such as XML files and various programming languages.

Word wrap can be toggled for individual files with Options|Word Wrap and Options|Indent Wrapped Lines.

Tabs and Indentation

Normally, pressing the Tab key on the keyboard inserts a special tab character that has a variable width. If you turn on "pressing Tab inserts spaces", then EditPad Pro will insert the equivalent number of spaces, which have a fixed width.

When you turn on "automatically indent new lines when pressing Enter", EditPad will automatically put the same number of spaces and/or tabs at the start of the new line as the previous line starts with. This option can be toggled for individual files with Options|Auto Indent.

"Tab size in spaces" is the maximum width of a tab character expressed in an equivalent number of spaces. A typical value is 8 spaces, which means there will be a tab stop at every 8th column. This option also determines the number of spaces that is inserted if you turn on "pressing Tab inserts spaces".

You can also place tab stops at specific columns by entering a comma-delimited list of column numbers. Pressing Tab will then make the cursor jump to the next tab stop column, either by inserting a single tab character or the number of spaces needed to reach the next tab stop (depending on the "pressing Tab inserts spaces" option). After the last specific column, there will be additional tab stops spaced according to the "tab size in spaces" setting. You can put a + before a number to make that tab stop relative to the previous tab stop. E.g.: 10,+5,+5,37,+7,+12 would be equivalent to 10,15,20,37,44,56.

"Indentation size in spaces" is the number of spaces that the Block|Indent and Block|Outdent will use to indent or outdent the current selection. If the indentation size is an integer multiple of the tab size, and the option to make Tab insert spaces is off, the Indent and Outdent functions will use tab characters.

Visualization

Turn on "show line breaks" if you always want to see a ¶ character at the end of each paragraph, indicating the invisible line break character(s). Note that if line break characters are selected, the paragraph symbol will always appear to show you that they have indeed been selected. You can quickly change this option by picking Options|Paragraph Symbol from the menu.

Select "show spaces and tabs" if you want spaces and tabs to be visualized. Spaces will be indicated by a vertically centered dot. Tabs are indicated by a » character. This option is useful when working with files where extraneous whitespace can lead to problems, or where the difference between tabs and spaces matters. You can quickly toggle it by picking Options|Visualize Spaces from the menu.