From 2e299631ffa9bc072b27468f6e97536d079f04d2 Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Thu, 12 Sep 2019 11:27:21 -0400 Subject: [PATCH 1/3] Updating documentation for HTML --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 293c432..748857c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# SQL highlighting in Python multiline strings for VS Code +# SQL and HTML highlighting in Python multiline strings for VS Code -Adds syntax highlight support for python multiline SQL strings in VS Code. +Adds syntax highlight support for python multiline SQL and HTML strings in VS Code. ## Installation @@ -13,10 +13,14 @@ Install `python-string-sql` from extensions (`ctrl + shift + x` or `cmd + shift ## Usage +#### For SQL Strings: Insert `--sql`, `--beginsql`, or `--begin-sql` at the beginning of the part of the string you would like highlighted and a semicolon, `--endsql`, or `--end-sql` at the end of the highlighted section. +#### For SQL Strings: +Insert `--html`, `--beginhtml`, or `--begin-html` at the beginning of the part of the string you would like highlighted and a semicolon, `--endhtml`, or `--end-html` at the end of the highlighted section. + ### Snippets -begin typing `sql` and the autocomplete snippet will appear: +begin typing `sql` or `html` and the autocomplete snippet will appear: ![Snippet](docs/snippet.gif) From 0807288a556fd2b11e9ae0429359b044bfb8cc4e Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Thu, 12 Sep 2019 11:27:54 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 748857c..edebb19 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Install `python-string-sql` from extensions (`ctrl + shift + x` or `cmd + shift #### For SQL Strings: Insert `--sql`, `--beginsql`, or `--begin-sql` at the beginning of the part of the string you would like highlighted and a semicolon, `--endsql`, or `--end-sql` at the end of the highlighted section. -#### For SQL Strings: +#### For HTML Strings: Insert `--html`, `--beginhtml`, or `--begin-html` at the beginning of the part of the string you would like highlighted and a semicolon, `--endhtml`, or `--end-html` at the end of the highlighted section. ### Snippets From 4fef81435dac3ed57995e855673fb4f9fb8d57a1 Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Thu, 12 Sep 2019 11:30:03 -0400 Subject: [PATCH 3/3] Update python.json --- snippets/python.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/snippets/python.json b/snippets/python.json index 8d3f04f..98a938e 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -9,5 +9,16 @@ "\"\"\"" ], "description": "SQL highlighted string" + }, + "HTML_highlighted_string": { + "prefix": "html", + "body": [ + "\"\"\"", + "--html", + "${1| ,
|}", + "--end-html", + "\"\"\"" + ], + "description": "HTML highlighted string" } -} \ No newline at end of file +}