SWT - Text Editor Example

## SWT standalone example - Text Editor

This example demonstrates how to use a StyledText widget to implement a text editor with formatting support. The example has a typical text editor interface. The Edit menu contains Cut, Copy, Paste and Set Font items. The toolbar provides a bold text toggle, three colour tools, and a reset button, all of which operate on the current selection.

### Running the example

Follow the SWT standalone examples setup instructions to install and run the example from your workspace.

The "Main" class is `org.eclipse.swt.examples.texteditor.TextEditor`.

This example can also be run using the Example Launcher. Select the Text Editor item from the Standalone category and click Run.