mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-31 21:36:26 +00:00
docs: Example theme_overrides for docstrings as italic (#19694)
This commit is contained in:
parent
02718284ef
commit
3ec015b325
1 changed files with 7 additions and 2 deletions
|
@ -34,7 +34,7 @@ By default, Zed maintains two themes: one for light mode and one for dark mode.
|
|||
|
||||
To override specific attributes of a theme, use the `experimental.theme_overrides` setting.
|
||||
|
||||
For example, to override the background color of the editor and the font style of comments, add the following to your `settings.json` file:
|
||||
For example, add the following to your `settings.json` if you wish to to override the background color of the editor and display comments and doc comments as italics:
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -43,13 +43,18 @@ For example, to override the background color of the editor and the font style o
|
|||
"syntax": {
|
||||
"comment": {
|
||||
"font_style": "italic"
|
||||
},
|
||||
"comment.doc": {
|
||||
"font_style": "italic"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
See which attributes are available to override by looking at the JSON format of your theme. For example, [here is the JSON format for the `One` themes](https://github.com/zed-industries/zed/blob/main/assets/themes/one/one.json).
|
||||
To see a comprehensive list of list of captures (like `comment` and `comment.doc`) see: [Language Extensions: Syntax highlighting](./extensions/languages.md#syntax-highlighting).
|
||||
|
||||
To see a list of available theme attributes look at the JSON file for your theme. For example, [assets/themes/one/one.json](https://github.com/zed-industries/zed/blob/main/assets/themes/one/one.json) for the default One Dark and One Light themes.
|
||||
|
||||
## Local Themes
|
||||
|
||||
|
|
Loading…
Reference in a new issue