Projekt

Obecné

Profil

Stáhnout (2.48 KB) Statistiky
| Větev: | Tag: | Revize:
1
ace.define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
2
"use strict";
3

    
4
exports.snippetText = "# Markdown\n\
5
\n\
6
# Includes octopress (http://octopress.org/) snippets\n\
7
\n\
8
snippet [\n\
9
	[${1:text}](http://${2:address} \"${3:title}\")\n\
10
snippet [*\n\
11
	[${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
12
\n\
13
snippet [:\n\
14
	[${1:id}]: http://${2:url} \"${3:title}\"\n\
15
snippet [:*\n\
16
	[${1:id}]: ${2:`@*`} \"${3:title}\"\n\
17
\n\
18
snippet ![\n\
19
	![${1:alttext}](${2:/images/image.jpg} \"${3:title}\")\n\
20
snippet ![*\n\
21
	![${1:alt}](${2:`@*`} \"${3:title}\")${4}\n\
22
\n\
23
snippet ![:\n\
24
	![${1:id}]: ${2:url} \"${3:title}\"\n\
25
snippet ![:*\n\
26
	![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
27
\n\
28
snippet ===\n\
29
regex /^/=+/=*//\n\
30
	${PREV_LINE/./=/g}\n\
31
	\n\
32
	${0}\n\
33
snippet ---\n\
34
regex /^/-+/-*//\n\
35
	${PREV_LINE/./-/g}\n\
36
	\n\
37
	${0}\n\
38
snippet blockquote\n\
39
	{% blockquote %}\n\
40
	${1:quote}\n\
41
	{% endblockquote %}\n\
42
\n\
43
snippet blockquote-author\n\
44
	{% blockquote ${1:author}, ${2:title} %}\n\
45
	${3:quote}\n\
46
	{% endblockquote %}\n\
47
\n\
48
snippet blockquote-link\n\
49
	{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
50
	${4:quote}\n\
51
	{% endblockquote %}\n\
52
\n\
53
snippet bt-codeblock-short\n\
54
	```\n\
55
	${1:code_snippet}\n\
56
	```\n\
57
\n\
58
snippet bt-codeblock-full\n\
59
	``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
60
	${5:code_snippet}\n\
61
	```\n\
62
\n\
63
snippet codeblock-short\n\
64
	{% codeblock %}\n\
65
	${1:code_snippet}\n\
66
	{% endcodeblock %}\n\
67
\n\
68
snippet codeblock-full\n\
69
	{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
70
	${5:code_snippet}\n\
71
	{% endcodeblock %}\n\
72
\n\
73
snippet gist-full\n\
74
	{% gist ${1:gist_id} ${2:filename} %}\n\
75
\n\
76
snippet gist-short\n\
77
	{% gist ${1:gist_id} %}\n\
78
\n\
79
snippet img\n\
80
	{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
81
\n\
82
snippet youtube\n\
83
	{% youtube ${1:video_id} %}\n\
84
\n\
85
# The quote should appear only once in the text. It is inherently part of it.\n\
86
# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
87
\n\
88
snippet pullquote\n\
89
	{% pullquote %}\n\
90
	${1:text} {\" ${2:quote} \"} ${3:text}\n\
91
	{% endpullquote %}\n\
92
";
93
exports.scope = "markdown";
94

    
95
});                (function() {
96
                    ace.require(["ace/snippets/markdown"], function(m) {
97
                        if (typeof module == "object" && typeof exports == "object" && module) {
98
                            module.exports = m;
99
                        }
100
                    });
101
                })();
102
            
(91-91/171)