Skip to content

Commit 0e5024f

Browse files
committed
docs: suggest styling the inner braces italic
1 parent 6c0b2bf commit 0e5024f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ bootsrap styling, htmx magic, and text escaping.
4242

4343
- f-strings are not very useful with CSS and JS. These languages are brace-heavy - too many braces to be escaped.
4444

45-
- Add these lines to the VSCode settings.json to underline the embedded scopes as in the sample above:
45+
- Add these lines to the VSCode settings.json to style the f-expression braces italic as in the sample above:
46+
4647
```json
4748
"editor.tokenColorCustomizations": {
4849
"textMateRules": [
4950
{
50-
"scope": "meta.embedded.inline.f-expression",
51+
"scope": "meta.embedded.inline.f-expression constant.character.format.placeholder.other.python",
5152
"settings": {
52-
"fontStyle": "underline",
53+
"fontStyle": "italic",
5354
},
5455
},
5556
]

0 commit comments

Comments
 (0)