Want more features on Pastebin? Sign Up, it's FREE!
Guest

Better html:$ snippets for Emmet/Zen Coding

By: markthema3 on Jan 11th, 2013  |  syntax: None  |  size: 2.42 KB  |  views: 198  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. "snippets": {
  2.         "variables": {
  3.                 "title": "Document",
  4.                 "style": "style.css",
  5.                 "script": "script.js"
  6.         },
  7.         "html": {
  8.                 "snippets": {
  9.                         "html:4t": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html lang=\"${lang}\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=${charset}\">\n\t<title>${title}</title>\n\t<link rel=\"stylesheet\" href=\"${style}\">\n\t<script src=\"${script}\"></script>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>",
  10.                         "html:4s": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html lang=\"${lang}\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=${charset}\">\n\t<title>${title}</title>\n\t<link rel=\"stylesheet\" href=\"${style}\">\n\t<script src=\"${script}\"></script>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>",
  11.                                 "html:xt": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"${lang}\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=${charset}\" />\n\t<title></title>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>",
  12.                                 "html:xs": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"${lang}\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=${charset}\" />\n\t<title>${title}</title>\n\t<link rel=\"stylesheet\" href=\"${style}\">\n\t<script src=\"${script}\"></script>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>",
  13.                                 "html:xxs": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"${lang}\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=${charset}\" />\n\t<title>${title}</title>\n\t<link rel=\"stylesheet\" href=\"${style}\">\n\t<script src=\"${script}\"></script>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>",
  14.                                 "html:5": "<!doctype html>\n<html lang=\"${lang}\">\n<head>\n\t<meta charset=\"${charset}\">\n\t<title>${title}</title>\n\t<link rel=\"stylesheet\" href=\"${style}\">\n\t<script src=\"${script}\"></script>\n</head>\n<body>\n\t${child}${2}\n</body>\n</html>"
  15.                         }
  16.                 }
  17.         },
clone this paste RAW Paste Data