Skip to content

Commit bcc2a66

Browse files
committed
docs
1 parent ebd9674 commit bcc2a66

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vscode-python-fstring-dsl
22

3-
Syntax highlighting for HTML, SQL, JS, CSS in Python f-strings
3+
VSCode syntax highlighting for HTML, SQL, JS, CSS in Python f-strings
44

55
## Usage
66

@@ -51,15 +51,22 @@ The changes are not applied automatically. Run _(Ctrl-Shift-P)_ **Highlight f-st
5151

5252
- Add these lines to the VSCode settings.json to style the f-expression braces italic as in the sample above:
5353

54-
```json
54+
```jsonc
5555
"editor.tokenColorCustomizations": {
56-
"textMateRules": [
57-
{
58-
"scope": "meta.embedded.inline.f-expression constant.character.format.placeholder.other.python",
59-
"settings": {
60-
"fontStyle": "italic",
56+
"textMateRules": [
57+
{
58+
"scope": "meta.embedded.inline.f-expression constant.character.format.placeholder.other.python",
59+
"settings": {
60+
"fontStyle": "italic bold",
61+
},
6162
},
62-
},
63+
// ... or maybe underline the full expression ?
64+
// {
65+
// "scope": "meta.embedded.inline.f-expression",
66+
// "settings": {
67+
// "fontStyle": "underline",
68+
// },
69+
// },
6370
]
6471
},
6572
```

0 commit comments

Comments
 (0)