https://github.com/gnat/vscode-python-highlight-html-sql
Highlight HTML, SQL in Python Strings for VSCode, Codium. Embed HTML, PHP, Python Server Pages style.
https://github.com/gnat/vscode-python-highlight-html-sql
Last synced: 4 months ago
JSON representation
Highlight HTML, SQL in Python Strings for VSCode, Codium. Embed HTML, PHP, Python Server Pages style.
- Host: GitHub
- URL: https://github.com/gnat/vscode-python-highlight-html-sql
- Owner: gnat
- License: mit
- Created: 2022-10-10T11:02:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-12T21:02:44.000Z (5 months ago)
- Last Synced: 2025-01-12T22:18:17.596Z (5 months ago)
- Homepage:
- Size: 138 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python String Highlighter for HTML, SQL
Highlight HTML, SQL in Python Strings for VSCode, Codium.Github: https://github.com/gnat/vscode-python-highlight-html-sql
Embed HTML. Kinda like:
* PHP.
* Python Server Pages (PSP)
* PyCharm SQL highlightingPairs well with:
* Darkstar: https://github.com/lllama/dark-star
* Raw strings for Jinja.## Screenshot

## 🚨 Install Instructions (Codium)
1. Download as zip (under the code button) or clone.
2. Add **vscode-python-highlight-html-sql** folder to:
* **~/.vscode-oss/extensions/** (Linux 🐧 / Mac 🍏)
* Flatpak? Use **~/.var/app/com.vscodium.codium/data/codium/extensions/**
* **%USERPROFILE%\.vscode-oss\extensions** (Windows 🖥️)
3. Restart VS Codium.## 🚨 Install Instructions (VSCode)
1. Download as zip (under the code button) or clone.
2. Add **vscode-python-highlight-html-sql** folder to:
* **~/.vscode/extensions/** (Linux 🐧 / Mac 🍏)
* **%USERPROFILE%\.vscode\extensions** (Windows 🖥️)
3. Restart VS Code.## Special thanks to:
* Textmate for the regexes: https://github.com/textmate
* Original idea improved upon: https://github.com/ptweir/python-string-sql## Alternative for Sublime Text
* https://github.com/gnat/sublime-python-html/
## Compliments well with [Highlight](https://github.com/fabiospampinato/vscode-highlight):
* Highlight multiline language blocks (Similar to Sublime or TextMate, but not quite as good due to limitations in VSCode).
```
"highlight.regexes": {
"(\\\"\\\"\\\"((.|\\n)+?)\\\"\\\"\\\")" :{
"regExFlags":"gims",
"decorations": [
{
"backgroundColor": "#000000",
"overviewRulerColor": "#000000",
}
]
},
"(\\'\\'\\'((.|\\n)+?)\\'\\'\\')" :{
"regExFlags":"gims",
"decorations": [
{
"backgroundColor": "#000000",
"overviewRulerColor": "#000000",
}
]
},
}
```