7 Editor Modes

▼ |  | Dr Racket Plugins

1 | Tool support for #lang-based Languages
2 | Implementing Dr Racket Plugins
3 | Adding Languages to Dr Racket
4 | Creating New Kinds of Dr Racket Frames
5 | Extending the Existing Dr Racket Classes
6 | Expanding the User’s Program Text and Breaking
7 | Editor Modes
8 | Plugin Capabilities
9 | Check Syntax
10 | Cooperating with Background Check Syntax
11 | Teaching Languages
12 | Signatures
13 | drracket: get/ extend
14 | drracket: unit
15 | drracket: language
16 | drracket: language-configuration
17 | drracket: debug
18 | drracket: rep
19 | drracket: frame
20 | drracket: help-desk
21 | drracket: eval
22 | drracket: modes
23 | drracket: module-language-tools
24 | drracket: module-language
25 | drracket: tracing
26 | drracket: init
27 | Backwards Compatibility
| Index

► | 7 | Editor Modes

7.1 | Color Schemes
7.2 | General-purpose Modes

On this page:

7.1 Color Schemes
7.2 General-purpose Modes

Racket
top contents ← prev up next →

## 7 Editor Modes🔗ℹ

### 7.1 Color Schemes🔗ℹ

DrRacket uses the framework’s color schemes to colorize source text and other aspects of itself. See color-prefs:register-info-based-color-schemes for details on how to add new color schemes via "info.rkt" files.

### 7.2 General-purpose Modes🔗ℹ

Plugins can register modes via drracket:modes:add-mode. Each mode is visible in the Modes submenu of the Edit menu. Initially, DrRacket only supports two modes: Racket mode and text mode. (The Racket mode consults the language in the #lang line; see Definitions Text Surrogate for more details.)

DrRacket automatically selects a mode for each open file based on the file’s extension (and the language chosen as described above). If the file ends with .txt, DrRacket uses text mode. Otherwise, DrRacket uses Racket mode.

top contents ← prev up next →