# The `code' Mode

## Introduction

The `code` mode of `jedit` is intended for editing program code for which there isn't a specific mode. (Currently, the only kind of program code for which there is a specific mode is Tcl; see The `tcl' Mode.)

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

## Preferences

The only differences between `code` mode and `plain` mode are in the default modespecific preferences. Specifically:

* Long lines will wrap on character boundaries rather than only between words.

* Long lines will not automatically have newlines inserted as you approach the right margin.

* When you press Return, whitespace is inserted for you at the beginning of the new line to match the indentation on the preceding line.

* When you type a ``}`', ``]`', or ``)`' character, the corresponding ``{`', ``[`', or ``(`' character is flashed briefly. (If there's no matching opening character, the whole window will flash.)

For a list of filename and firstline patterns that cause files to be edited in `code` mode, see the Editing Modes section in The jedit Text Editor.

## See Also

The `tcl' Mode

``