Spaces:
Build error
Build error
|
Download docs/obsidian-developer/Reference/CSS variables/Editor/Code.md from anpigon/obsidian-qa-bot: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/spaces/anpigon/obsidian-qa-bot/resolve/main/docs/obsidian-developer/Reference/CSS%20variables/Editor/Code.md
- Command line
-
hf download 'hf://spaces/anpigon/obsidian-qa-bot/docs/obsidian-developer/Reference/CSS variables/Editor/Code.md'
-
curl -L -o Code.md https://huggingface.co/spaces/anpigon/obsidian-qa-bot/resolve/main/docs/obsidian-developer/Reference/CSS%20variables/Editor/Code.md
1.22 kB
| cssClass: reference | |
| This page lists CSS variables for code. | |
| ## CSS variables | |
| | Variable | Description | | |
| | -------------------- | --------------------- | | |
| | `--code-background` | Code background color | | |
| | `--code-white-space` | Code `white-space` | | |
| | `--code-size` | Code font size | | |
| ### Syntax highlighting | |
| > [!note] | |
| > Since Obsidian uses two different libraries for syntax highlighting—one for Editing view and another for Reading view—styling may not match perfectly between the two. | |
| | Variable | Description | | |
| | -------------------- | ------------------------ | | |
| | `--code-normal` | Non-highlighted syntax | | |
| | `--code-comment` | Comments | | |
| | `--code-function` | Functions | | |
| | `--code-important` | Important, regex | | |
| | `--code-keyword` | Keywords | | |
| | `--code-operator` | Operators | | |
| | `--code-property` | Properties | | |
| | `--code-punctuation` | Punctuation | | |
| | `--code-string` | Strings | | |
| | `--code-tag` | Tags, symbols, constants | | |
| | `--code-value` | Values | | |