Skip to content

Commit

Permalink
Add first version of built-in snippets (#81)
Browse files Browse the repository at this point in the history
Add a new JSON file with a first cut of the built-in snippets.
  • Loading branch information
cloose committed Nov 12, 2013
1 parent 7568676 commit 5522efe
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ OTHER_FILES += \
styles/clearness-dark.css \
styles/clearness.css \
styles/byword-dark.css \
styles/solarized-light.css
styles/solarized-light.css \
markdown-snippets.json

message("Using INCLUDEPATH=$$INCLUDEPATH")
message("Using LIBS=$$LIBS")
Expand Down
58 changes: 58 additions & 0 deletions app/markdown-snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"snippets": [
{
"trigger": "kbd",
"description": "HTML Keyboard Input Element (kbd)",
"snippet": "<kbd></kbd>",
"cursor": 5
},
{
"trigger": "gq",
"description": "German Quotes",
"snippet": "&bdquo;&rdquo;",
"cursor": 7
},
{
"trigger": "~~~clojure",
"description": "Clojure Code Block",
"snippet": "~~~clojure\n\n~~~",
"cursor": 11
},
{
"trigger": "~~~cpp",
"description": "C++ Code Block",
"snippet": "~~~cpp\n\n~~~",
"cursor": 7
},
{
"trigger": "~~~java",
"description": "Java Code Block",
"snippet": "~~~java\n\n~~~",
"cursor": 8
},
{
"trigger": "~~~objectivec",
"description": "Objective C Code Block",
"snippet": "~~~objectivec\n\n~~~",
"cursor": 14
},
{
"trigger": "~~~phyton",
"description": "Python Code Block",
"snippet": "~~~phyton\n\n~~~",
"cursor": 10
},
{
"trigger": "~~~ruby",
"description": "Ruby Code Block",
"snippet": "~~~ruby\n\n~~~",
"cursor": 8
},
{
"trigger": "~~~sql",
"description": "SQL Code Block",
"snippet": "~~~sql\n\n~~~",
"cursor": 7
}
]
}
1 change: 1 addition & 0 deletions app/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<file>syntax_cs.html</file>
<file>syntax_el.html</file>
<file>syntax_zh_CN.html</file>
<file>markdown-snippets.json</file>
</qresource>
<qresource prefix="/icons">
<file alias="icon-close.png">images/icon-close.png</file>
Expand Down

0 comments on commit 5522efe

Please sign in to comment.