Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix tcss syntax highlighting #4176

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guide/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ In the following example we have three buttons, each of which does something dif

=== "on_decorator.tcss"

```python title="on_decorator.tcss"
```css title="on_decorator.tcss"
--8<-- "docs/examples/events/on_decorator.tcss"
```

Expand Down Expand Up @@ -241,7 +241,7 @@ The following example uses the decorator approach to write individual message ha

=== "on_decorator.tcss"

```python title="on_decorator.tcss"
```css title="on_decorator.tcss"
--8<-- "docs/examples/events/on_decorator.tcss"
```

Expand Down Expand Up @@ -325,7 +325,7 @@ Let's look at an example which looks up word definitions from an [api](https://d
```
=== "dictionary.tcss"

```python title="dictionary.tcss"
```css title="dictionary.tcss"
--8<-- "docs/examples/events/dictionary.tcss"
```

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following example shows how focus works in practice.

=== "key03.tcss"

```python title="key03.tcss" hl_lines="15-17"
```css title="key03.tcss" hl_lines="15-17"
--8<-- "docs/examples/guide/input/key03.tcss"
```

Expand Down Expand Up @@ -138,7 +138,7 @@ The following example binds the keys ++r++, ++g++, and ++b++ to an action which

=== "binding01.tcss"

```python title="binding01.tcss"
```css title="binding01.tcss"
--8<-- "docs/examples/guide/input/binding01.tcss"
```

Expand Down Expand Up @@ -208,7 +208,7 @@ The following example shows mouse movements being used to _attach_ a widget to t

=== "mouse01.tcss"

```python title="mouse01.tcss"
```css title="mouse01.tcss"
--8<-- "docs/examples/guide/input/mouse01.tcss"
```

Expand Down
6 changes: 3 additions & 3 deletions docs/widgets/option_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ options:

=== "option_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/option_list.tcss"
~~~

Expand All @@ -50,7 +50,7 @@ class can be used to add separator lines between options.

=== "option_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/option_list.tcss"
~~~

Expand All @@ -75,7 +75,7 @@ tables](https://rich.readthedocs.io/en/latest/tables.html):

=== "option_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/option_list.tcss"
~~~

Expand Down
6 changes: 3 additions & 3 deletions docs/widgets/selection_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ optionally contain a flag for the initial selected state of the option.

=== "selection_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/selection_list.tcss"
~~~

Expand All @@ -78,7 +78,7 @@ Alternatively, selections can be passed in as

=== "selection_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/selection_list.tcss"
~~~

Expand All @@ -105,7 +105,7 @@ collection of selected values:

=== "selection_list.tcss"

~~~python
~~~css
--8<-- "docs/examples/widgets/selection_list_selected.tcss"
~~~

Expand Down