mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
create element and populate smart snippet
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>var ${1:element} = document.createElement('${10:div}');
|
||||
$0${100:$1.innerHTML = ${290:'${300:lorem}'};
|
||||
}${110:$1.appendChild(document.createTextNode(${355:${290:'${350:$300}'}}));
|
||||
}${200:document.body}.appendChild($1);</string>
|
||||
<key>name</key>
|
||||
<string>createNode…appendChild idiom</string>
|
||||
<key>scope</key>
|
||||
<string>source.js</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>el=</string>
|
||||
<key>uuid</key>
|
||||
<string>E39E4E5A-32FC-4BD5-91D8-6A8B6A5AEB2F</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -199,6 +199,7 @@
|
||||
<string>E6827B03-693B-4C9E-B288-D7EEF36D6EF1</string>
|
||||
<string>BBDBA2F8-0C0D-41AC-97F2-EB3A09D9044C</string>
|
||||
<string>F035D69A-8987-459C-8425-090752784BC4</string>
|
||||
<string>E39E4E5A-32FC-4BD5-91D8-6A8B6A5AEB2F</string>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>AAB4FD74-73F9-11D9-B89A-000D93589AF6</string>
|
||||
|
||||
Reference in New Issue
Block a user