# Pencil and highlighter

Write and draw with ink that follows your hand.

Platforms: Web, iPad, iPhone, Android

The **Pencil** is selected when you open a note. Put the pen down and write.

![Handwriting and a sketch in pencil](/handbook/images/editor-overview.png)

## Choose a tool

| Input | Pencil | Highlighter |
| --- | --- | --- |
| Toolbar | **Pencil** | **Highlighter** |
| Keyboard (web, iPad, Android) | <kbd>D</kbd>, <kbd>B</kbd>, or <kbd>X</kbd> | <kbd>H</kbd> or <kbd>⇧</kbd><kbd>D</kbd> |

The **Highlighter** lays down wide, translucent ink for marking up what's already there.

## Pressure

With Apple Pencil or another pressure-sensitive stylus, pressing harder makes a thicker line. With a finger or a mouse, tldraw notes shapes the line from how fast you move instead. There's nothing to turn on.

## Straight lines

Hold <kbd>⇧</kbd> while drawing to straighten the stroke you're making. To draw only straight lines, turn on **Straight lines** in the style panel.

## Size and color

Choose the dot at the end of the toolbar to change color, size, and opacity. See [Color and style](color-and-style.md).

**Dynamic size** keeps your pen the same size on screen whatever the zoom, so zooming in gives you finer lines. It's on by default and set per note in **Page › Dynamic size**. See [Paper](paper.md).

## How strokes are kept

Each stroke is one change. It's saved when you lift the pen, and one undo removes it. If something interrupts a stroke, like switching apps, pressing <kbd>Esc</kbd>, or a call, the unfinished stroke is dropped rather than half-saved.
