├── .vscode
└── launch.json
├── .vscodeignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── images
├── logo.png
└── ss1.png
├── language-configuration.json
├── package.json
├── pyscript-0.1.0.vsix
├── pyscript-0.1.1.vsix
├── snippets
├── pyscript-snippets.json
└── test.json
├── syntaxes
├── pyscript.tmLanguage.json
└── python.tmLanguage.json
└── vsc-extension-quickstart.md
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that launches the extension inside a new window
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | {
6 | "version": "0.2.0",
7 | "configurations": [
8 | {
9 | "name": "Extension",
10 | "type": "extensionHost",
11 | "request": "launch",
12 | "args": [
13 | "--extensionDevelopmentPath=${workspaceFolder}"
14 | ]
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------
/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | .gitignore
4 | vsc-extension-quickstart.md
5 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "pyscript" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2021 vscode-pyscript contributors
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the "Software"),
7 | to deal in the Software without restriction, including without limitation
8 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 | and/or sell copies of the Software, and to permit persons to whom the
10 | Software is furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included
13 | in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 | IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PyScript extension for Visual Studio Code
2 |
3 | > Beautiful syntax and scoped snippets for pyscript
4 |
5 | 
6 |
7 |
8 | ## Features
9 | - Provides code Highlighting for python langage in pyscript in HTML files.
10 | - More than 200 snippets for PyScript, Django Templte, Python and HTML.
11 | - Snippets are scoped to the current file.
12 | - New Language Support for `pyscript` in VS code Language selection.
13 |
14 |
15 | ## Example Snippets
16 | `pyscript` will add the following snippets:
17 | ```
18 |
19 |
20 | ```
21 |
22 | `pycdn` will add the following snippets:
23 | ```
24 |
25 | "
26 | ```
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hardeepsingh980/pyscript/1e6ef04e44d847e9f5c81ba2fa355bcbb7a4cb5f/images/logo.png
--------------------------------------------------------------------------------
/images/ss1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hardeepsingh980/pyscript/1e6ef04e44d847e9f5c81ba2fa355bcbb7a4cb5f/images/ss1.png
--------------------------------------------------------------------------------
/language-configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "comments": {
3 | // symbol used for single line comment. Remove this entry if your language does not support line comments
4 | "lineComment": "//",
5 | // symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6 | "blockComment": [ "/*", "*/" ]
7 | },
8 | // symbols used as brackets
9 | "brackets": [
10 | ["{", "}"],
11 | ["[", "]"],
12 | ["(", ")"]
13 | ],
14 | // symbols that are auto closed when typing
15 | "autoClosingPairs": [
16 | ["{", "}"],
17 | ["[", "]"],
18 | ["(", ")"],
19 | ["\"", "\""],
20 | ["'", "'"]
21 | ],
22 | // symbols that can be used to surround a selection
23 | "surroundingPairs": [
24 | ["{", "}"],
25 | ["[", "]"],
26 | ["(", ")"],
27 | ["\"", "\""],
28 | ["'", "'"]
29 | ]
30 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pyscript",
3 | "displayName": "pyscript",
4 | "description": "Code Highlighter for PyScript",
5 | "publisher": "HardeepSingh",
6 | "icon": "images/logo.png",
7 | "galleryBanner": {
8 | "color": "#0c4b33",
9 | "theme": "dark"
10 | },
11 | "version": "0.1.1",
12 | "engines": {
13 | "vscode": "^1.67.0"
14 | },
15 | "recommendations": [
16 | "ms-python.python"
17 | ],
18 | "keywords": [
19 | "python",
20 | "django",
21 | "web",
22 | "pyscript",
23 | "django templates",
24 | "anaconda"
25 | ],
26 | "categories": [
27 | "Programming Languages",
28 | "Snippets"
29 | ],
30 | "repository": {
31 | "type": "git",
32 | "url": "https://github.com/Hardeepsingh980/pyscript.git"
33 | },
34 | "homepage": "https://github.com/Hardeepsingh980/pyscript.git",
35 | "bugs": {
36 | "url": "https://github.com/Hardeepsingh980/pyscript.git/issues"
37 | },
38 | "contributes": {
39 | "languages": [{
40 | "id": "pyscript",
41 | "aliases": ["pyscript", "pyscript"],
42 | "extensions": [".html"],
43 | "configuration": "./language-configuration.json"
44 | }],
45 | "grammars": [{
46 | "language": "pyscript",
47 | "scopeName": "text.html.pyscript",
48 | "path": "./syntaxes/pyscript.tmLanguage.json"
49 | }],
50 | "snippets": [
51 | {
52 | "language": "pyscript",
53 | "scopeName": "text.html.pyscript",
54 | "path": "./snippets/pyscript-snippets.json"
55 | }
56 | ]
57 | }
58 | }
--------------------------------------------------------------------------------
/pyscript-0.1.0.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hardeepsingh980/pyscript/1e6ef04e44d847e9f5c81ba2fa355bcbb7a4cb5f/pyscript-0.1.0.vsix
--------------------------------------------------------------------------------
/pyscript-0.1.1.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Hardeepsingh980/pyscript/1e6ef04e44d847e9f5c81ba2fa355bcbb7a4cb5f/pyscript-0.1.1.vsix
--------------------------------------------------------------------------------
/snippets/pyscript-snippets.json:
--------------------------------------------------------------------------------
1 | {
2 | "pyscript": {
3 | "prefix": "pyscript",
4 | "description": "Python script",
5 | "body": [
6 | "",
7 | "$1",
8 | ""
9 | ]
10 | },
11 | "pycdn": {
12 | "prefix": "pycdn",
13 | "description": "add pyscript's CDN",
14 | "body": [
15 | "",
16 | ""
17 | ]
18 | },
19 | "doctype": {
20 | "prefix": "doctype",
21 | "body": [
22 | "",
23 | "$1"
24 | ],
25 | "description": "HTML - Defines the document type",
26 | "scope": "text.html"
27 | },
28 | "a": {
29 | "prefix": "a",
30 | "body": "$2$3",
31 | "description": "HTML - Defines a hyperlink",
32 | "scope": "text.html"
33 | },
34 | "abbr": {
35 | "prefix": "abbr",
36 | "body": "$2$3",
37 | "description": "HTML - Defines an abbreviation",
38 | "scope": "text.html"
39 | },
40 | "address": {
41 | "prefix": "address",
42 | "body": [
43 | "
",
44 | "$1",
45 | ""
46 | ],
47 | "description": "HTML - Defines an address element",
48 | "scope": "text.html"
49 | },
50 | "area": {
51 | "prefix": "area",
52 | "body": "$5",
53 | "description": "HTML - Defines an area inside an image map",
54 | "scope": "text.html"
55 | },
56 | "article": {
57 | "prefix": "article",
58 | "body": [
59 | "",
60 | "\t$1",
61 | ""
62 | ],
63 | "description": "HTML - Defines an article",
64 | "scope": "text.html"
65 | },
66 | "aside": {
67 | "prefix": "aside",
68 | "body": [
69 | "$2"
72 | ],
73 | "description": "HTML - Defines content aside from the page content",
74 | "scope": "text.html"
75 | },
76 | "audio": {
77 | "prefix": "audio",
78 | "body": [
79 | ""
82 | ],
83 | "description": "HTML - Defines sounds content",
84 | "scope": "text.html"
85 | },
86 | "b": {
87 | "prefix": "b",
88 | "body": "$1$2",
89 | "description": "HTML - Defines bold text",
90 | "scope": "text.html"
91 | },
92 | "base": {
93 | "prefix": "base",
94 | "body": "$3",
95 | "description": "HTML - Defines a base URL for all the links in a page",
96 | "scope": "text.html"
97 | },
98 | "bdi": {
99 | "prefix": "bdi",
100 | "body": "$1$2",
101 | "description": "HTML - Used to isolate text that is of unknown directionality",
102 | "scope": "text.html"
103 | },
104 | "bdo": {
105 | "prefix": "bdo",
106 | "body": [
107 | "",
108 | "$2",
109 | ""
110 | ],
111 | "description": "HTML - Defines the direction of text display",
112 | "scope": "text.html"
113 | },
114 | "big": {
115 | "prefix": "big",
116 | "body": "$1$2",
117 | "description": "HTML - Used to make text bigger",
118 | "scope": "text.html"
119 | },
120 | "blockquote": {
121 | "prefix": "blockquote",
122 | "body": [
123 | "",
124 | "\t$1",
125 | "
"
126 | ],
127 | "description": "HTML - Defines a long quotation",
128 | "scope": "text.html"
129 | },
130 | "body": {
131 | "prefix": "body",
132 | "body": [
133 | "",
134 | "\t$1",
135 | ""
136 | ],
137 | "description": "HTML - Defines the body element",
138 | "scope": "text.html"
139 | },
140 | "br": {
141 | "prefix": "br",
142 | "body": "
",
143 | "description": "HTML - Inserts a single line break",
144 | "scope": "text.html"
145 | },
146 | "button": {
147 | "prefix": "button",
148 | "body": "$3",
149 | "description": "HTML - Defines a push button",
150 | "scope": "text.html"
151 | },
152 | "canvas": {
153 | "prefix": "canvas",
154 | "body": "$3",
155 | "description": "HTML - Defines graphics",
156 | "scope": "text.html"
157 | },
158 | "caption": {
159 | "prefix": "caption",
160 | "body": "$1$2",
161 | "description": "HTML - Defines a table caption",
162 | "scope": "text.html"
163 | },
164 | "cite": {
165 | "prefix": "cite",
166 | "body": "$1$2",
167 | "description": "HTML - Defines a citation",
168 | "scope": "text.html"
169 | },
170 | "code": {
171 | "prefix": "code",
172 | "body": "$1
$2",
173 | "description": "HTML - Defines computer code text",
174 | "scope": "text.html"
175 | },
176 | "col": {
177 | "prefix": "col",
178 | "body": "$2",
179 | "description": "HTML - Defines attributes for table columns",
180 | "scope": "text.html"
181 | },
182 | "colgroup": {
183 | "prefix": "colgroup",
184 | "body": [
185 | "",
186 | "\t$1",
187 | ""
188 | ],
189 | "description": "HTML - Defines group of table columns",
190 | "scope": "text.html"
191 | },
192 | "command": {
193 | "prefix": "command",
194 | "body": "$1$2",
195 | "description": "HTML - Defines a command button [not supported]",
196 | "scope": "text.html"
197 | },
198 | "datalist": {
199 | "prefix": "datalist",
200 | "body": [
201 | ""
204 | ],
205 | "description": "HTML - Defines a dropdown list",
206 | "scope": "text.html"
207 | },
208 | "dd": {
209 | "prefix": "dd",
210 | "body": "$1$2",
211 | "description": "HTML - Defines a definition description",
212 | "scope": "text.html"
213 | },
214 | "del": {
215 | "prefix": "del",
216 | "body": "$1$2",
217 | "description": "HTML - Defines deleted text",
218 | "scope": "text.html"
219 | },
220 | "details": {
221 | "prefix": "details",
222 | "body": [
223 | "",
224 | "\t$1",
225 | " "
226 | ],
227 | "description": "HTML - Defines details of an element",
228 | "scope": "text.html"
229 | },
230 | "dialog": {
231 | "prefix": "dialog",
232 | "body": "$2",
233 | "description": "HTML - Defines a dialog (conversation)",
234 | "scope": "text.html"
235 | },
236 | "dfn": {
237 | "prefix": "dfn",
238 | "body": "$1$2",
239 | "description": "HTML - Defines a definition term",
240 | "scope": "text.html"
241 | },
242 | "div": {
243 | "prefix": "div",
244 | "body": [
245 | "",
246 | "\t$1",
247 | "
"
248 | ],
249 | "description": "HTML - Defines a section in a document",
250 | "scope": "text.html"
251 | },
252 | "dl": {
253 | "prefix": "dl",
254 | "body": [
255 | "",
256 | "\t$1",
257 | "
"
258 | ],
259 | "description": "HTML - Defines a definition list",
260 | "scope": "text.html"
261 | },
262 | "dt": {
263 | "prefix": "dt",
264 | "body": "$1$2",
265 | "description": "HTML - Defines a definition term",
266 | "scope": "text.html"
267 | },
268 | "em": {
269 | "prefix": "em",
270 | "body": "$1$2",
271 | "description": "HTML - Defines emphasized text",
272 | "scope": "text.html"
273 | },
274 | "embed": {
275 | "prefix": "embed",
276 | "body": "