{The `richtext' Mode

Introduction
The richtext mode of jedit is intended for editing text with fancier formatting than is possible in plain ASCII, including multiple fonts and colours and underlining.  By default, jedit opens files whose names end in .jrt in richtext mode; you'll probably find it most convenient to give such files names ending in .jrt.

The ability to work with rich text is not unique to richtext mode; it's built into jedit and described under Working with Fonts and Colours in the jedit documentation.  (However, most modes don't display the `Format' menu by default.)

This document describes the richext mode available with version 4.0/4.0b of jedit.

The Format Menu
The main visible difference between richtext mode and plain mode is that the `Format' menu is available by default.  (Of course, you can change which menus are available with the Mode­Specific Preferences panel, as with any mode.)

Saving and Loading Files
In richtext mode, files are saved in a special format.  The first part of the file contains the actual text of the file, and should be reasonably legible if you look directly at the file contents (with another editor, for example).  This is followed by information about stretches of text with various styles - e.g., where all the sequences of boldface text start and end, and by information about special positions in the file, such as where the insert point is or where the last search started from.  (This last information isn't normally used.)

(This format is implemented by the j:tag:archive_text_widget and j:tag:restore_text_widget procedures in the jtexttags.tcl library, which see for more information.)

See Also
	The `jdoc' Mode
} {{{sel {8.64 8.72}} {jdoc:xref:link {4.21 4.26 6.83 6.88 6.109 6.139 6.204 6.221 11.54 11.64 11.73 11.90 11.179 11.204 16.35 16.60 16.65 16.90 16.109 16.122 19.1 19.16}} {jdoc:anchor:anchorname {3.0 4.0 10.0 11.0 13.0 14.0 18.0 19.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.12 4.21 4.26 4.180 4.185 4.217 4.221 4.225 4.233 4.315 4.319 6.52 6.60 6.83 6.88 6.109 6.139 6.147 6.152 8.28 8.35 8.76 8.81 10.0 11.0 11.36 11.44 11.54 11.59 13.0 14.0 14.3 14.11 16.35 16.60 16.65 16.90 16.109 16.122 18.0 19.0 19.1 19.16 20.0}} {richtext:font:bold {4.217 4.221 4.315 4.319 16.109 16.122}} {richtext:font:bolditalic {6.109 6.139 19.1 19.16}} {richtext:font:typewriter {4.4 4.12 4.21 4.26 4.180 4.185 4.225 4.233 6.52 6.60 6.83 6.88 6.147 6.152 8.28 8.35 8.76 8.81 11.36 11.44 11.54 11.59 14.3 14.11 16.35 16.60 16.65 16.90}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 10.0 11.0 13.0 14.0 18.0 19.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jedit.jdoc {4.21 4.26 6.83 6.88}} {jdoc:link:jedit.jdoc#Mode­Specific_Preferences {11.179 11.204}} {jdoc:link:jeditmodes/plain_mode.jdoc {11.54 11.64}} {jdoc:link:jedit.jdoc#The_Format_Menu {6.204 6.221 11.73 11.90}} {jdoc:link:jedit.jdoc#Working_with_Fonts_and_Colours {6.109 6.139}} {jdoc:anchorname:The_Format_Menu {10.0 11.0}} {jdoc:anchorname:Saving_and_Loading_Files {13.0 14.0}} {jdoc:link:jtexttags.tcl.jdoc {16.109 16.122}} {jdoc:link:jtexttags.tcl.jdoc#j:tag:restore_text_widget {16.65 16.90}} {jdoc:link:jtexttags.tcl.jdoc#j:tag:archive_text_widget {16.35 16.60}} {jdoc:link:jeditmodes/jdoc-mode.jdoc {19.1 19.16}} {jdoc:anchorname:See_Also {18.0 19.0}}} {{abbrevstart 18.0} {matchend 11.84} {abbrevend 18.0} {insert 8.72} {anchor 8.72} {matchstart 11.78} {current 1.0}}}