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 highlighting
Pairs well with:
- Darkstar: https://github.com/lllama/dark-star
- Raw strings for Jinja.
- Download as zip (under the code button) or clone.
- 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 🖥️)
- ~/.vscode-oss/extensions/ (Linux 🐧 / Mac 🍏)
- Restart VS Codium.
- Download as zip (under the code button) or clone.
- Add vscode-python-highlight-html-sql folder to:
- ~/.vscode/extensions/ (Linux 🐧 / Mac 🍏)
- %USERPROFILE%.vscode\extensions (Windows 🖥️)
- Restart VS Code.
- Textmate for the regexes: https://github.com/textmate
- Original idea improved upon: https://github.com/ptweir/python-string-sql
Compliments well with 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",
}
]
},
}