Skip to content

Commit b557f85

Browse files
committed
Add Snippets
1 parent 79bd823 commit b557f85

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

snippets/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Html Base Snippet
2+
3+
This is the base HTML I use for many of the playground and exercises.
4+
5+
I've included it as straight html for you to copy+paste, or as a VS Code snippet as well.
6+
7+
Please PR this repo adding in other editor snippets as well.
8+
9+
## VS Code
10+
11+
1. Open the command palette with `` or `Ctrl` + `P`
12+
2. Type `>configure user snippets` and run the found command
13+
3. Select `html.json` from the list
14+
4. Paste the contents of `htmlbase.json` into the `{ }` of the file

snippets/htmlbase.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>HTML Base</title>
8+
<link rel="stylesheet" href="../base.css">
9+
</head>
10+
11+
<body>
12+
13+
</body>
14+
15+
</html>

snippets/htmlbase.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"HTML Base": {
2+
"prefix": "htmlbase",
3+
"body": [
4+
"<!DOCTYPE html>",
5+
"<html lang=\"en\">",
6+
"<head>",
7+
" <meta charset=\"UTF-8\">",
8+
" <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\">",
9+
" <title>$1</title>",
10+
" <link rel=\"stylesheet\" href=\"../base.css\">",
11+
"</head>",
12+
"<body>",
13+
" $2",
14+
"</body>",
15+
"</html>",
16+
],
17+
"description": "HTML Base for Beginner JavaScript"
18+
}

0 commit comments

Comments
 (0)