Skip to content

Commit

Permalink
Fix highlighting in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 6, 2024
1 parent 2357785 commit 62b8da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ The first line imports the Textual `App` class, which we will use as the base cl

The following lines define the app itself:

```python title="stopwatch01.py" hl_lines="5-17"
```python title="stopwatch01.py" hl_lines="5-19"
--8<-- "docs/examples/tutorial/stopwatch01.py"
```

Expand All @@ -150,7 +150,7 @@ Here's what the above app defines:

- `action_toggle_dark()` defines an _action_ method. Actions are methods beginning with `action_` followed by the name of the action. The `BINDINGS` list above tells Textual to run this action when the user hits the ++d++ key. See [actions](./guide/actions.md) in the guide for details.

```python title="stopwatch01.py" hl_lines="20-22"
```python title="stopwatch01.py" hl_lines="22-24"
--8<-- "docs/examples/tutorial/stopwatch01.py"
```

Expand Down

0 comments on commit 62b8da1

Please sign in to comment.