Word Wrap

The word wrap feature splits lines at word boundaries in order to fit text within a specified wrap margin. The wrap margin position is indicated in the text are as a faint blue vertical line. One of the two wrap modes (described below) can be selected, and the wrap margin can be changed in one of several ways:

Soft Wrap

In soft wrap mode, lines are automatically wrapped when displayed on screen. Newlines are not inserted at the wrap positions, and the wrapping is automatically updated when text is inserted or removed.

If end of line markers are enabled in the Text Area pane of the Utilities>Global Options dialog box, a colon (":") is painted at the end of wrapped lines.

Note that since jEdit only scrolls one whole "physical" (newline-delimited) line at a time, having lines wrapped into more sections than visible in the text area will render portions of the buffer inaccessable.

Tip

If you enable soft wrap and set the wrap margin to 0, text will be wrapped to the width of the text area.

Hard Wrap

In hard wrap mode, inserting text at the end of a line will automatically break the line if it extends beyond the wrap margin. Inserting or removing text in the middle of a line has no effect, however text can be re-wrapped using the Edit>Text>Format Paragraph command. See the section called "Working With Paragraphs".

Hard wrap is implemented using character offsets, not screen positions, so it might not behave like you expect if a proportional-width font is being used. The text area font can be changed in the Text Area pane of the Utilities>Global Options dialog box.