Skip to content
Browse files

add tabstops and final tabstop in snippets

  • Loading branch information...
1 parent a394a37 commit 8265b49271e574ce521302f8ac764f209122389c @fmarcia committed
Showing with 26 additions and 44 deletions.
  1. +3 −21 zencoding/my_zen_settings.py
  2. +23 −23 zencoding/zen_settings.py
View
24 zencoding/my_zen_settings.py
@@ -1,7 +1,7 @@
my_zen_settings = {
'css': {
'snippets': {
- "css": " {\n${indentation}\n}",
+ "def": "{\n\t$0\n}",
}
},
'html': {
@@ -10,26 +10,8 @@
'link:css': '<link rel="stylesheet" type="text/css" href="" media="all" />'
},
'snippets': {
- 'dtdd': '<dt>${child}|</dt>\n<dd></dd>',
- 'cdata': '<![CDATA[\n'
- '${indentation}\n'
- ']]>',
- 'html:xt': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n'
- '${indentation}"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'
- '\n'
- '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${lang}">\n'
- '\n'
- '${indentation}<head>\n'
- '${indentation}${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n'
- '${indentation}${indentation}<title>|</title>\n'
- '${indentation}${indentation}|\n'
- '${indentation}</head>\n'
- '\n'
- '${indentation}<body>\n'
- '${indentation}${indentation}${child}|\n'
- '${indentation}</body>\n'
- '\n'
- '</html>'
+ 'dtdd': '<dt>${child}|</dt>\n<dd>|</dd>',
+ 'cdata': '<![CDATA[\n\t$0\n]]>'
}
}
}
View
46 zencoding/zen_settings.py
@@ -30,8 +30,8 @@
'extends': 'common',
'snippets': {
"@i": "@import url(|);",
- "@m": "@media print {\n${indentation}|\n}",
- "@f": "@font-face {\n${indentation}font-family:|;\n${indentation}src:url(|);\n}",
+ "@m": "@media print {\n\t|\n}",
+ "@f": "@font-face {\n\tfont-family:|;\n\tsrc:url(|);\n}",
"!": "!important",
"pos": "position:|;",
"pos:s": "position:static;",
@@ -508,67 +508,67 @@
'extends': 'common',
'filters': 'html',
'snippets': {
- 'cc:ie6': '<!--[if lte IE 6]>\n${indentation}${child}|\n<![endif]-->',
- 'cc:ie': '<!--[if IE]>\n${indentation}${child}|\n<![endif]-->',
- 'cc:noie': '<!--[if !IE]><!-->\n${indentation}${child}|\n<!--<![endif]-->',
+ 'cc:ie6': '<!--[if lte IE 6]>\n\t${child}$0\n<![endif]-->',
+ 'cc:ie': '<!--[if IE]>\n\t${child}$0\n<![endif]-->',
+ 'cc:noie': '<!--[if !IE]><!-->\n\t${child}$0\n<!--<![endif]-->',
'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' +
- '${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}">\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta http-equiv="Content-Type" content="text/html;charset=${charset}">\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>',
'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' +
- '${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}">\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta http-equiv="Content-Type" content="text/html;charset=${charset}">\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>',
'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' +
- '${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>',
'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' +
- '${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>',
'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' +
- '${indentation}<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta http-equiv="Content-Type" content="text/html;charset=${charset}" />\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>',
'html:5': '<!DOCTYPE HTML>\n' +
'<html lang="${locale}">\n' +
'<head>\n' +
- '${indentation}<meta charset="${charset}">\n' +
- '${indentation}<title></title>\n' +
+ '\t<meta charset="${charset}">\n' +
+ '\t<title>|</title>\n' +
'</head>\n' +
'<body>\n' +
- '${indentation}${child}|\n</body>\n' +
+ '\t${child}$0\n</body>\n' +
'</html>'
},

0 comments on commit 8265b49

Please sign in to comment.
Something went wrong with that request. Please try again.