Skip to content

Commit 8b63f34

Browse files
author
Naseschwarz
committed
Enable RON syntax highlighting
1 parent adadc27 commit 8b63f34

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

THEMES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Alternatively, you can create a theme in the same directory mentioned above and
1818

1919
Example theme override:
2020

21-
```
21+
```ron
2222
(
2323
selection_bg: Some("Blue"),
2424
selection_fg: Some("#ffffff"),
@@ -39,14 +39,14 @@ Notes:
3939
The syntax highlighting theme can be defined using the element `syntax`. Both [default themes of the syntect library are supported](https://github.com/trishume/syntect/blob/7fe13c0fd53cdfa0f9fea1aa14c5ba37f81d8b71/src/dumps.rs#L215) and custom themes are supported.
4040

4141
Example syntax theme:
42-
```
42+
```ron
4343
(
4444
syntax: Some("InspiredGitHub"),
4545
)
4646
```
4747

4848
Custom themes are located in the [configuration directory](#configuration), are using TextMate's theme format and must have a `.tmTheme` file extension. To load a custom theme, syntax must be set to the name without the file extension. For example, to load [`Blackboard.tmTheme`](https://raw.githubusercontent.com/filmgirl/TextMate-Themes/refs/heads/master/Blackboard.tmTheme), place the file next to `theme.ron` and set:
49-
```
49+
```ron
5050
(
5151
syntax: Some("Blackboard"),
5252
)
@@ -58,15 +58,15 @@ Custom themes are located in the [configuration directory](#configuration), are
5858

5959
If you want to change how the line break is displayed in the diff, you can also specify `line_break` in your `theme.ron`:
6060

61-
```
61+
```ron
6262
(
6363
line_break: Some("¶"),
6464
)
6565
```
6666

6767
Note that if you want to turn it off, you should use a blank string:
6868

69-
```
69+
```ron
7070
(
7171
line_break: Some(""),
7272
)

0 commit comments

Comments
 (0)