An open API service indexing awesome lists of open source software.

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.

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 highlighting

Pairs well with:
* Darkstar: https://github.com/lllama/dark-star
* Raw strings for Jinja.

## Screenshot

![image](https://user-images.githubusercontent.com/24665/183111942-9d6e8dc7-6b82-47fb-9492-07d25ffc6523.png)

## 🚨 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",
}
]
},
}
```