Last active
December 23, 2015 07:59
-
-
Save yxchai/6604472 to your computer and use it in GitHub Desktop.
Emmet configuration files for email developer, snippets.json is my personal snippets which have much more advanced snippets. You should create your own snippets.json for your own snippets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"css.color.short": false, | |
"css.intUnit": "px" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"html": { | |
"snippets": { | |
"gmacspacer": "<img src=\"http://image.service.ngic.com/lib/fef91274766207/m/1/spacer.gif\" width=\"${1:1}\" height=\"${2:1}\" border=\"0\" style=\"display:block;\" />", | |
"ecspacer": "<img src=\"http://image.e.easycomforts.com/lib/fe971570726d037d75/m/1/ec_id_121228_spacer.gif\" width=\"${1:1}\" height=\"${2:1}\" border=\"0\" style=\"display:block;\" />", | |
"expspacer": "<img src=\"http://image.e.exposuresonline.com/lib/fe861570726d02747c/m/2/EXP_WM_130729_spacer.gif\" width=\"${1:1}\" height=\"${2:1}\" border=\"0\" style=\"display:block;\" />", | |
"afspacer": "<img src=\"http://image.em.arthritis.org/lib/fea115707260057d74/m/1/af_09_120919_spacer.gif\" width=\"${1:1}\" height=\"${2:1}\" style=\"display:block;\" border=\"0\" />", | |
"etre": "RaiseError(\"Version not recognized\", true)", | |
"styleinall": "<style>\n* {\n\ttext-rendering:optimizelegibility;\n\t-webkit-font-smoothing:antialiased;\n\t-webkit-text-size-adjust:none;\n\t-moz-text-size-adjust: none;\n\t-ms-text-size-adjust: none;\n\ttext-size-adjust: none;\n}\n.notinuse1 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse2 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse3 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse4 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse5 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse6 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse7 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse8 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse9 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.notinuse0 {\n\twidth: 300px !important;\n\theight: 300px !important;\n\tdisplay: block !important;\n\tfloat: none !important;\n}\n.ReadMsgBody {\n\twidth: 100%;\n}\n.ExternalClass {\n\twidth: 100%;\n}\n.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {\n\tline-height: 100%;\n}\ntable td {\n\tborder-collapse: collapse;\n}\na {\n\tcolor:inherit;\n\ttext-decoration:none;\n}\n</style>\n", | |
"bodyinit": "bgcolor=\"#ffffff\" style=\"margin:0; padding:0; width:100% !important;\"", | |
"ebinit": "%%[\nvar @subjectline, @storenum, @storename, @country\n\nset @country = COUNTRY\n\nif empty(COUNTRY) then\nset @country = \"USA\"\nelseif COUNTRY == \"USA\" then\nset @country = \"USA\"\nendif\n\nset @storenum = STORE_NUMBER_UPDATE\nset @storename = Lookup(\"EB_StoreLocator\",\"STORE_NAME\",\"STORE_NUMBER_UPDATE\",@storenum)\nif Empty(@storename) then\nset @storename = \"find one now with our store locator.\"\nelseif @storename == \" \" then\nset @storename = \"find one now with our store locator.\"\nendif\n\nset @subjectline = \"replace\"\nif recip_type==\"proof\" then\nset @subjectline = concat(\"[${1:ID(replace)}-\",emailtype,\"-\",@country, \"-\" ,@storename,\"-\",recip_type,\"] \", @subjectline)\nendif\n]%%", | |
"sline": "%%[\nvar @subjectline\nset @subjectline =\"replace\"\nif recip_type==\"proof\" then\nset @subjectline = concat(\"[${1:ID(replace)}-\",emailtype,\"-\",recip_type,\"] \", @subjectline)\nendif\n]%%", | |
"v": "%%=v(@${class})=%%", | |
"de": "%%${class}%%", | |
"amp": "%%[\n|\n]%%", | |
"upc": "%%=uppercase('${1}')=%%", | |
"lwc": "%%=lowercase('${1}')=%%", | |
"lhfix": "style=\"font-size:0; line-height:1;\"", | |
"fontinit": "style=\"font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #000000;\"", | |
"rball": "<sup style=\"font-size:9px; line-height:0;\">®</sup>", | |
"fname": "if Empty(firstname) then\nset @firstname = \"${1:Friend}\"\nelse\nset @firstname = ProperCase(firstname)\nendif\n", | |
"longver": "%%[if emailversion == \"V1\" then]%%\n\nVersion 1 OnlyForLongVer*${class}${1}\n\n%%[else RaiseError(\"Version not recognized\", true) endif]%%", | |
"OnlyForLongVer": "\n%%[elseif emailversion == \"V$@2\" then]%%\nVersion $", | |
"2ver": "%%[if emailversion == \"V1\" then]%%\nVersion 1\n%%[elseif emailversion == \"V2\" then]%%\nVersion 2\n%%[else RaiseError(\"Version not recognized\", true) endif]%%", | |
"onlyforETTracking": "<custom name=\"opencounter\" type=\"tracking\">", | |
"noalt": "<img src=\"images/replace\" height=\"50\" width=\"50\" border=\"0\" style=\"display: block;\" />", | |
"ebship": "%%[if @country == \"USA\" then]%%", | |
"endif": "%%[endif]%%", | |
"ppc": "%%=propercase(@${class})=%%", | |
"webview": "%%view_email_url%%", | |
"doctype": "<!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\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\" />\n<title>${1:ADD CLIENT NAME}</title>\n</head>\n\n<body bgcolor=\"#ffffff\" style=\"margin:0; padding:0; width:100% !important;\">\n\n</body>\n</html>\n" | |
}, | |
"abbreviations": { | |
"tableonly": "table[cellpadding=0 cellspacing=0 border=0]", | |
"edtd": "td[align=left valign=top]*", | |
"edtr": "tr>edtd*", | |
"edtable": "tableonly>edtr*", | |
"alias:u": "a[href=replace target=_blank alias=replace style='color: #999999; text-decoration: underline;']", | |
"alias:n": "a[href=replace target=_blank alias=replace style='color: #999999; text-decoration: none;']", | |
"aliasc:u": "a[href=replace target=_blank alias=replace style='color: #999999; text-decoration: underline;' conversion=true]", | |
"aliasc:n": "a[href=replace target=_blank alias=replace style='color: #999999; text-decoration: none;' conversion=true]", | |
"alt": "img[src=images/replace alt=replace height=50 width=50 border=0 style='display: block;']", | |
"ettracking": "div[style='display: none;']>onlyforETTracking", | |
"list": "table[cellpadding=0 cellspacing=0 border=0]>tr*>(td[align=left valign=top style='font-size: 13px; font-family: Arial, Verdana, sans-serif; color: #000000; padding-left: 10px;']{• })+(td[align=left valign=top style='font-size: 13px; font-family: Arial, Verdana, sans-serif; color: #000000;']{replace})" | |
} | |
}, | |
"css":{ | |
"snippets": { | |
"lhmso": "mso-line-height-rule:exactly; line-height: 18px;" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"html": { | |
"snippets": { | |
"ntbl": "tableonly>(tr>td[align=left valign=top]*${class})*${id}", | |
"2row": "tableonly>(tr>edtd>tableonly>tr>edtd*${class})(tr>edtd>tableonly>tr>edtd*${id})", | |
"2cell": "tableonly>tr>(edtd>tableonly>(tr>edtd)*${class}+(edtd>tableonly>(tr>edtd)*${id})", | |
"lhfix": "style=\"line-height: 0px;\"" | |
}, | |
"abbreviations": { | |
"tbl": "edtable" , | |
"wtr": "edtr", | |
"wtd": "edtd", | |
"alias": "alias:u", | |
"aliasc": "aliasc:u", | |
"wvtbl": "tableonly>tr*>td[align=left valign=top]", | |
"htbl": "tableonly>tr>td[align=left valign=top]+td[align=left valign=top]>wvtbl*", | |
"ltbl": "tableonly>tr>(td[align=left valign=top]>wvtbl*)+td[align=left valign=top]", | |
"ktbl": "tableonly>(tr>td[align=left valign=top])+(td[align=left valign=top]>tbl*)", | |
"jtbl": "tableonly>(td[align=left valign=top]>tbl*)+(tr>td[align=left valign=top])" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"html": { | |
"tag_case": "lower", | |
"attr_quotes": "double", | |
"attr_case": "lower", | |
"indent": true, | |
"inline_break": 2, | |
"tag_nl": "decide", | |
"tag_nl_leaf": false, | |
"self_closing_tag": "xhtml", | |
"filters": "html" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment