File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments