├── .DS_Store
├── .vscode
└── launch.json
├── LICENSE
├── README.md
├── images
├── icon.png
└── preview.gif
├── package.json
├── snippets
└── snippets.json
└── vsc-extension-quickstart.md
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abusaidm/html-snippets/cbf4f185f1646b8cd114a6a89048f09eaa2dade0/.DS_Store
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.1.0",
4 | "configurations": [
5 | {
6 | "name": "Launch Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Mohamed Abusaid
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | 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 FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # README
2 | ## Visual Studio Code HTML Snippets
3 | ## DISABLING THIS EXTENSION AS IT CURRENTLY CONFLICTS WTH EXISTING VS CODE HTML EXTENSION
4 |
5 | This extension adds rich language support for the HTML Markup to VS Code, including:
6 |
7 | - Full HTML5 Tags
8 | - Colorization
9 | - Snippets
10 | - [partially implemented] Quick Info
11 | - description mentions if tag deprecated
12 |
13 | ### Update 5
14 | - Disabling this extension as its functionality has been absorbed by VS Code main html extension.
15 |
16 | ### Update 4
17 | - Removed all languages, only HTML Remains.
18 | - Added FAQ in end of page.
19 |
20 | ### Update 3
21 | - added php, js, and jsreact as languages where the snippets work by default.
22 |
23 |
24 | ### Update 2
25 | - fixed a bug with line cursor on vscode 1.5.1
26 |
27 | ### Update 1
28 | - removed deprecated tags [acronym, applet, basefont, center, dir, font, frame, frameset, noframes, strike, tt]
29 | - fixed LI tag issue, you couldn't add new line in the tags
30 |
31 | ### Todo
32 | - [on-going]Improve syntax layout.
33 | - [on-going]Add support for Tab to end of line.
34 | - [on-going]Populate Tags with properties.
35 |
36 | # Using
37 | Type part of a snippet, press enter, and the snippet unfolds.
38 |
39 | Snippets named as the tag without braces
40 |
41 | div -->
42 | doc -->
43 | a -->
44 |
45 | 
46 |
47 | # Installation
48 |
49 | 1. Install Visual Studio Code 0.10.1 or higher
50 | 2. Launch Code
51 | 3. From the command palette `Ctrl-Shift-P` (Windows, Linux) or `Cmd-Shift-P` (OSX)
52 | 4. Select Install Extension
53 | 5. Type `HTML-Snippets`
54 | 6. Choose the extension
55 | 7. Reload Visual Studio Code
56 |
57 | # FAQ
58 | ## How to enable the snippets on a file other than html?
59 | Add the following code to the project settings.json or global settings.json :
60 | ```
61 | "files.associations": {
62 | // extension name : html
63 | "*.ejs": "html",
64 | "*.js": "html"
65 | }
66 | ```
67 | the above code will allow html snippet to work on .ejs and .js files, amend to fit your needs.
68 |
69 | Please Read this answer.
70 | [Make extension work in languages other than HTML](https://github.com/abusaidm/html-snippets/issues/27#issuecomment-282512411)
71 |
72 | ## How can I report an issue?
73 | The easiest way is to start a git issue, I will attempt to answer ASAP else I hope someone else will answer.
74 |
75 | # Contact
76 | If you find any issue or have a suggestion please tweet me on @m_abusaid
77 |
78 | >**I am unable to respond to comments on the store page, please use appropriate channels github/twitter to reach me. Thank you**
79 |
80 | ## License
81 | MIT License, refer to license file.
82 |
83 | # Source
84 | [Github](https://github.com/abusaidm/html-snippets)
85 |
86 | ** Enjoy!**
87 |
--------------------------------------------------------------------------------
/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abusaidm/html-snippets/cbf4f185f1646b8cd114a6a89048f09eaa2dade0/images/icon.png
--------------------------------------------------------------------------------
/images/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/abusaidm/html-snippets/cbf4f185f1646b8cd114a6a89048f09eaa2dade0/images/preview.gif
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "html-snippets",
3 | "displayName": "HTML Snippets",
4 | "description": "Full HTML tags including HTML5 Snippets",
5 | "version": "0.2.1",
6 | "publisher": "abusaidm",
7 | "icon": "images/icon.png",
8 | "engines": {
9 | "vscode": "^1.9.1"
10 | },
11 | "galleryBanner": {
12 | "color": "#1E81C1",
13 | "theme": "light"
14 | },
15 | "categories": [
16 | "Snippets"
17 | ],
18 | "contributes": {
19 | "snippets": [
20 | {
21 | "language": "html",
22 | "path": "./snippets/snippets.json"
23 | }
24 | ]
25 | },
26 | "license": "MIT",
27 | "bugs": {
28 | "url": "https://github.com/abusaidm/html-snippets/issues"
29 | },
30 | "repository": {
31 | "type": "git",
32 | "url": "https://github.com/abusaidm/html-snippets.git"
33 | },
34 | "homepage": "https://github.com/abusaidm/html-snippets/blob/master/README.md"
35 | }
36 |
--------------------------------------------------------------------------------
/snippets/snippets.json:
--------------------------------------------------------------------------------
1 | // {
2 | // "doctype": {
3 | // "prefix": "doctype",
4 | // "body": [
5 | // "",
6 | // "$1"
7 | // ],
8 | // "description": "HTML - Defines the document type",
9 | // "scope": "text.html"
10 | // },
11 | // "a": {
12 | // "prefix": "a",
13 | // "body": "$2$3",
14 | // "description": "HTML - Defines a hyperlink",
15 | // "scope": "text.html"
16 | // },
17 | // "abbr": {
18 | // "prefix": "abbr",
19 | // "body": "$2$3",
20 | // "description": "HTML - Defines an abbreviation",
21 | // "scope": "text.html"
22 | // },
23 | // "address": {
24 | // "prefix": "address",
25 | // "body": [
26 | // "",
27 | // "$1",
28 | // ""
29 | // ],
30 | // "description": "HTML - Defines an address element",
31 | // "scope": "text.html"
32 | // },
33 | // "area": {
34 | // "prefix": "area",
35 | // "body": "$5",
36 | // "description": "HTML - Defines an area inside an image map",
37 | // "scope": "text.html"
38 | // },
39 | // "article": {
40 | // "prefix": "article",
41 | // "body": [
42 | // "",
43 | // "\t$1",
44 | // ""
45 | // ],
46 | // "description": "HTML - Defines an article",
47 | // "scope": "text.html"
48 | // },
49 | // "aside": {
50 | // "prefix": "aside",
51 | // "body": [
52 | // "$2"
55 | // ],
56 | // "description": "HTML - Defines content aside from the page content",
57 | // "scope": "text.html"
58 | // },
59 | // "audio": {
60 | // "prefix": "audio",
61 | // "body": [
62 | // ""
65 | // ],
66 | // "description": "HTML - Defines sounds content",
67 | // "scope": "text.html"
68 | // },
69 | // "b": {
70 | // "prefix": "b",
71 | // "body": "$1$2",
72 | // "description": "HTML - Defines bold text",
73 | // "scope": "text.html"
74 | // },
75 | // "base": {
76 | // "prefix": "base",
77 | // "body": "$3",
78 | // "description": "HTML - Defines a base URL for all the links in a page",
79 | // "scope": "text.html"
80 | // },
81 | // "bdi": {
82 | // "prefix": "bdi",
83 | // "body": "$1$2",
84 | // "description": "HTML - Used to isolate text that is of unknown directionality",
85 | // "scope": "text.html"
86 | // },
87 | // "bdo": {
88 | // "prefix": "bdo",
89 | // "body": [
90 | // "",
91 | // "$2",
92 | // ""],
93 | // "description": "HTML - Defines the direction of text display",
94 | // "scope": "text.html"
95 | // },
96 | // "big": {
97 | // "prefix": "big",
98 | // "body": "$1$2",
99 | // "description": "HTML - Used to make text bigger",
100 | // "scope": "text.html"
101 | // },
102 | // "blockquote": {
103 | // "prefix": "blockquote",
104 | // "body": [
105 | // "