File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 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 ```
You can’t perform that action at this time.
0 commit comments