https://github.com/chdsbd/vscode-python-inline-sql-syntax
Add SQL syntax highlighting for Python strings.
https://github.com/chdsbd/vscode-python-inline-sql-syntax
vscode-extension
Last synced: 10 months ago
JSON representation
Add SQL syntax highlighting for Python strings.
- Host: GitHub
- URL: https://github.com/chdsbd/vscode-python-inline-sql-syntax
- Owner: chdsbd
- License: mit
- Created: 2024-03-13T15:13:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-14T01:18:11.000Z (over 2 years ago)
- Last Synced: 2025-01-02T01:16:24.683Z (over 1 year ago)
- Topics: vscode-extension
- Homepage:
- Size: 301 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# python-inline-sql-syntax
Add SQL syntax highlighting for Python strings.
## Features
### Syntax highlighting for mutli-line strings

Supported syntax:
```py
double_quotes_multi_line = """
select *
from users
where id = 82394;
"""
single_quotes_multi_line = '''
select *
from users
where id = 82394;
'''
```
Not supported:
```py
single_line_strings = 'select * from users where id = 82394;'
f_strings_ = f'select * from users where id = 82394;'
f_strings_multi_line = f'''
select *
from users
where id = 82394;
'''
```
## Development
### VSCode instructions
#### Get up and running straight away
- Press `F5` to open a new window with your extension loaded.
#### Make changes
- You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
- You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
### Publish
```bash
vsce package
vsce login chdsbd
vsce publish
```
[marketplace]: https://marketplace.visualstudio.com/items?itemName=chdsbd.python-inline-sql-syntax