2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["markup", [["tag", [["tag", [["punctuation", "<"], "div"]], ["punctuation", ">"]]]]]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for embedded markup.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/markup/cdata_feature.test:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["cdata", ""],
10 | ["cdata", ""]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for CDATA sections, single-line and multi-line.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/markup/entity_feature.test:
--------------------------------------------------------------------------------
1 | & ϑ ⛵
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["entity", "&"],
7 | ["entity", "ϑ"],
8 | ["entity", "⛵"],
9 | ["entity", " "]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for HTML/XML character entity references.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/matlab/comment_feature.test:
--------------------------------------------------------------------------------
1 | % foobar
2 | %{}%
3 | %{ foo
4 | bar }%
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "% foobar"],
10 | ["comment", "%{}%"],
11 | ["comment", "%{ foo\r\nbar }%"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for single-line and multi-line comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/matlab/function_feature.test:
--------------------------------------------------------------------------------
1 | foo()
2 | foo_42()
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
8 | ["function", "foo_42"], ["punctuation", "("], ["punctuation", ")"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/matlab/string_feature.test:
--------------------------------------------------------------------------------
1 | ''
2 | 'foo''bar'
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "''"],
8 | ["string", "'foo''bar'"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/code_feature.test:
--------------------------------------------------------------------------------
1 | `ls -selection`
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["code", [
7 | ["delimiter", "`"],
8 | ["function", "ls"],
9 | ["flag", "-selection"],
10 | ["delimiter", "`"]
11 | ]]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for code.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/comment_feature.test:
--------------------------------------------------------------------------------
1 | //
2 | // Foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "//"],
8 | ["comment", "// Foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/flag_feature.test:
--------------------------------------------------------------------------------
1 | -d
2 | -foo
3 | -foo42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["flag", "-d"],
9 | ["flag", "-foo"],
10 | ["flag", "-foo42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for flags.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/number_feature.test:
--------------------------------------------------------------------------------
1 | 0xBadFace
2 | 42
3 | 3.14159
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["number", "0xBadFace"],
9 | ["number", "42"],
10 | ["number", "3.14159"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for numbers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "\"\""],
8 | ["string", "\"fo\\\"obar\""]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mel/variable_feature.test:
--------------------------------------------------------------------------------
1 | $x
2 | $foo42
3 | $Foo_Bar_42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "$x"],
9 | ["variable", "$foo42"],
10 | ["variable", "$Foo_Bar_42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mizar/comment_feature.test:
--------------------------------------------------------------------------------
1 | :: Foobar
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["comment", ":: Foobar"]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mizar/number_feature.test:
--------------------------------------------------------------------------------
1 | 0
2 | -2
3 | 42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["number", "0"],
9 | ["number", "-2"],
10 | ["number", "42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for numbers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/mizar/operator_feature.test:
--------------------------------------------------------------------------------
1 | ...
2 | ->
3 | &
4 | = .=
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["operator", "..."],
10 | ["operator", "->"],
11 | ["operator", "&"],
12 | ["operator", "="], ["operator", ".="]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for operators.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/comment_feature.test:
--------------------------------------------------------------------------------
1 | ' Foobar
2 | #Rem Foo
3 | Bar 'Baz
4 | #End
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "' Foobar"],
10 | ["comment", "#Rem Foo\r\nBar 'Baz\r\n#End"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/function_feature.test:
--------------------------------------------------------------------------------
1 | foobar()
2 | Foo_Bar_42()
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
8 | ["function", "Foo_Bar_42"], ["punctuation", "("], ["punctuation", ")"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/number_feature.test:
--------------------------------------------------------------------------------
1 | 0
2 | 42
3 | 3.14159
4 | .5
5 | $BadFace
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["number", "0"],
11 | ["number", "42"],
12 | ["number", "3.14159"],
13 | ["number", ".5"],
14 | ["number", "$BadFace"]
15 | ]
16 |
17 | ----------------------------------------------------
18 |
19 | Checks for numbers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/preprocessor_feature.test:
--------------------------------------------------------------------------------
1 | #If HOST
2 | #ElseIf
3 | #Else
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["preprocessor", "#If HOST"],
9 | ["preprocessor", "#ElseIf"],
10 | ["preprocessor", "#Else"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for preprocessor directives.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "Foo ~qBar~q"
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "\"\""],
8 | ["string", "\"Foo ~qBar~q\""]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/monkey/type-char_feature.test:
--------------------------------------------------------------------------------
1 | foo?
2 | bar%
3 | baz#
4 | foobar$
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | "foo", ["type-char", "?"],
10 | "\r\nbar", ["type-char", "%"],
11 | "\r\nbaz", ["type-char", "#"],
12 | "\r\nfoobar", ["type-char", "$"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for type chars.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nasm/comment_feature.test:
--------------------------------------------------------------------------------
1 | ;
2 | ; foo
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", ";"],
8 | ["comment", "; foo"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nasm/label_feature.test:
--------------------------------------------------------------------------------
1 | foo42:
2 | .foo:
3 | ..@foo:
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["label", "foo42:"],
9 | ["label", ".foo:"],
10 | ["label", "..@foo:"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for labels.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nginx/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # Foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# Foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nginx/variable_feature.test:
--------------------------------------------------------------------------------
1 | $foobar
2 | $foo_bar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["variable", "$foobar"],
8 | ["variable", "$foo_bar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nim/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # Foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# Foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nix/antiquotation_feature.test:
--------------------------------------------------------------------------------
1 | ${42}
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["antiquotation", "$"],
7 | ["punctuation", "{"],
8 | ["number", "42"],
9 | ["punctuation", "}"]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for antiquotations outside of strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nix/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nix/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 | /**/
4 | /* foo
5 | bar */
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "#"],
11 | ["comment", "# foobar"],
12 | ["comment", "/**/"],
13 | ["comment", "/* foo\r\nbar */"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nix/number_feature.test:
--------------------------------------------------------------------------------
1 | 0
2 | 42
3 | 120457
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["number", "0"],
9 | ["number", "42"],
10 | ["number", "120457"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for integers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nsis/comment_feature.test:
--------------------------------------------------------------------------------
1 | /* foo */
2 | /* foo
3 | bar */
4 | # foo
5 | ; bar
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "/* foo */"],
11 | ["comment", "/* foo\r\nbar */"],
12 | ["comment", "# foo"],
13 | ["comment", "; bar"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nsis/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"o"
3 | ''
4 | 'fo\'o'
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"o\""],
11 | ["string", "''"],
12 | ["string", "'fo\\'o'"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for single-quoted and double-quoted strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/nsis/variable_feature.test:
--------------------------------------------------------------------------------
1 | $LANGUAGE
2 | $(myLicenseData)
3 | ${LANG_ENGLISH}
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "$LANGUAGE"],
9 | ["variable", "$(myLicenseData)"],
10 | ["variable", "${LANG_ENGLISH}"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ocaml/boolean_feature.test:
--------------------------------------------------------------------------------
1 | false
2 | true
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "false"],
8 | ["boolean", "true"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ocaml/comment_feature.test:
--------------------------------------------------------------------------------
1 | (**)
2 | (* foo
3 | bar *)
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["comment", "(**)"],
9 | ["comment", "(* foo\r\nbar *)"]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ocaml/directive_feature.test:
--------------------------------------------------------------------------------
1 | #quit
2 | #load
3 | #load_rec
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["directive", "#quit"],
9 | ["directive", "#load"],
10 | ["directive", "#load_rec"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for directives.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ocaml/type_feature.test:
--------------------------------------------------------------------------------
1 | 'Foo
2 | 'bar_42
3 | `Foo
4 | `bar_42
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["type", "'Foo"],
10 | ["type", "'bar_42"],
11 | ["type", "`Foo"],
12 | ["type", "`bar_42"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for types.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/oz/atom_feature.test:
--------------------------------------------------------------------------------
1 | ''
2 | 'fo\'obar'
3 | 'foo
4 | bar'
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["atom", "''"],
10 | ["atom", "'fo\\'obar'"],
11 | ["atom", "'foo\r\nbar'"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for atoms.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/oz/comment_feature.test:
--------------------------------------------------------------------------------
1 | %
2 | % Foobar
3 | /**/
4 | /* Foo
5 | bar */
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "%"],
11 | ["comment", "% Foobar"],
12 | ["comment", "/**/"],
13 | ["comment", "/* Foo\r\nbar */"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/oz/function_feature.test:
--------------------------------------------------------------------------------
1 | foobar()
2 | {Foobar}
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
8 | ["punctuation", "{"], ["function", "Foobar"], ["punctuation", "}"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for functions and procedures.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/oz/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "Fo\"obar"
3 | "Foo
4 | bar"
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"Fo\\\"obar\""],
11 | ["string", "\"Foo\r\nbar\""]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/oz/variable_feature.test:
--------------------------------------------------------------------------------
1 | A
2 | Foobar
3 | Foo42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "A"],
9 | ["variable", "Foobar"],
10 | ["variable", "Foo42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/parigp/comment_feature.test:
--------------------------------------------------------------------------------
1 | /**/
2 | /* foo
3 | bar */
4 | \\
5 | \\ foobar
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "/**/"],
11 | ["comment", "/* foo\r\nbar */"],
12 | ["comment", "\\\\"],
13 | ["comment", "\\\\ foobar"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/parigp/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "\"\""],
8 | ["string", "\"fo\\\"obar\""]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/perl/comment_feature.test:
--------------------------------------------------------------------------------
1 | =label foo
2 | bar
3 | =cut
4 | #
5 | # foobar
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "=label foo\r\nbar\r\n=cut"],
11 | ["comment", "#"],
12 | ["comment", "# foobar"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/perl/filehandle_feature.test:
--------------------------------------------------------------------------------
1 | _
2 | <>
3 |
4 |
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["filehandle", "_"],
10 | ["filehandle", "<>"],
11 | ["filehandle", ""],
12 | ["filehandle", ""]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for file handles.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/perl/function_feature.test:
--------------------------------------------------------------------------------
1 | sub foo
2 | sub Foo_Bar42
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["function", [["keyword", "sub"], " foo"]],
8 | ["function", [["keyword", "sub"], " Foo_Bar42"]]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/perl/vstring_feature.test:
--------------------------------------------------------------------------------
1 | v1.2
2 | 1.2.3
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["vstring", "v1.2"],
8 | ["vstring", "1.2.3"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for vstrings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/php!+php-extras/this_feature.test:
--------------------------------------------------------------------------------
1 | $this
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["this", "$this"]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for $this.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/php/constant_feature.test:
--------------------------------------------------------------------------------
1 | AZ
2 | PRISM
3 | FOOBAR_42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["constant", "AZ"],
9 | ["constant", "PRISM"],
10 | ["constant", "FOOBAR_42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for constants.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/php/delimiter_feature.test:
--------------------------------------------------------------------------------
1 | ?>
2 |
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["delimiter", ""],
8 | ["delimiter", "?>"],
9 | ["delimiter", ""]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for delimiters.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/php/shell-comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["shell-comment", "#"],
8 | ["shell-comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for shell-like comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/php/variable_feature.test:
--------------------------------------------------------------------------------
1 | $f
2 | $foo
3 | $foobar_42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "$f"],
9 | ["variable", "$foo"],
10 | ["variable", "$foobar_42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/processing/constant_feature.test:
--------------------------------------------------------------------------------
1 | FOOBAR
2 | FOO_BAR_42
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["constant", "FOOBAR"],
8 | ["constant", "FOO_BAR_42"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for constants.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/processing/function_feature.test:
--------------------------------------------------------------------------------
1 | foo(
2 | foo_bar_42 (
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["function", "foo"], ["punctuation", "("],
8 | ["function", "foo_bar_42"], ["punctuation", "("]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/prolog/builtin_feature.test:
--------------------------------------------------------------------------------
1 | fx
2 | fy
3 | xf xfx xfy
4 | yf yfx
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["builtin", "fx"],
10 | ["builtin", "fy"],
11 | ["builtin", "xf"], ["builtin", "xfx"], ["builtin", "xfy"],
12 | ["builtin", "yf"], ["builtin", "yfx"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for builtins.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/prolog/comment_feature.test:
--------------------------------------------------------------------------------
1 | % Foobar
2 | /**/
3 | /* Foo
4 | bar */
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "% Foobar"],
10 | ["comment", "/**/"],
11 | ["comment", "/* Foo\r\nbar */"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/prolog/number_feature.test:
--------------------------------------------------------------------------------
1 | 42
2 | 3.14159
3 | 0
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["number", "42"],
9 | ["number", "3.14159"],
10 | ["number", "0"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for numbers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/prolog/variable_feature.test:
--------------------------------------------------------------------------------
1 | Foobar
2 | Foo_bar_42
3 | _foo
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "Foobar"],
9 | ["variable", "Foo_bar_42"],
10 | ["variable", "_foo"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/puppet/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/puppet/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # Foobar
3 | /* Foo
4 | bar */
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "#"],
10 | ["comment", "# Foobar"],
11 | ["multiline-comment", "/* Foo\r\nbar */"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/pure/special_feature.test:
--------------------------------------------------------------------------------
1 | __show__
2 | __cmd__
3 | __with__
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["special", "__show__"],
9 | ["special", "__cmd__"],
10 | ["special", "__with__"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for special functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/pure/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "\"\""],
8 | ["string", "\"fo\\\"obar\""]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/python/boolean_feature.test:
--------------------------------------------------------------------------------
1 | True
2 | False
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "True"],
8 | ["boolean", "False"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/python/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/q/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "Fo\"obar"
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["string", "\"\""],
8 | ["string", "\"Fo\\\"obar\""]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/q/symbol_feature.test:
--------------------------------------------------------------------------------
1 | `
2 | `foobar
3 | `:www.example.com:8888
4 | `.foo
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["symbol", "`"],
10 | ["symbol", "`foobar"],
11 | ["symbol", "`:www.example.com:8888"],
12 | ["symbol", "`.foo"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for symbols.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/qore/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/qore/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"o
3 | bar"
4 | ''
5 | 'fo\'o
6 | bar'
7 |
8 | ----------------------------------------------------
9 |
10 | [
11 | ["string", "\"\""],
12 | ["string", "\"fo\\\"o\r\nbar\""],
13 | ["string", "''"],
14 | ["string", "'fo\\'o\r\nbar'"]
15 | ]
16 |
17 | ----------------------------------------------------
18 |
19 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/qore/variable_feature.test:
--------------------------------------------------------------------------------
1 | $foobar
2 | $foo_bar_42
3 | $Foobar
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["variable", "$foobar"],
9 | ["variable", "$foo_bar_42"],
10 | ["variable", "$Foobar"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for variables.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/r/boolean_feature.test:
--------------------------------------------------------------------------------
1 | TRUE
2 | FALSE
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "TRUE"],
8 | ["boolean", "FALSE"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/r/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/r/ellipsis_feature.test:
--------------------------------------------------------------------------------
1 | ...
2 | ..1
3 | ..42
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["ellipsis", "..."],
9 | ["ellipsis", "..1"],
10 | ["ellipsis", "..42"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for ellipsis and special identifiers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/r/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 | ''
4 | 'fo\'obar'
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"obar\""],
11 | ["string", "''"],
12 | ["string", "'fo\\'obar'"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for single-quoted and double-quoted strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/builtin_feature.test:
--------------------------------------------------------------------------------
1 | @
2 | System
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["builtin", "@"],
8 | ["builtin", "System"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for builtins.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/character_feature.test:
--------------------------------------------------------------------------------
1 | `a
2 | `b
3 | `Z
4 | ----------------------------------------------------
5 |
6 | [
7 | ["character", "`a"],
8 | ["character", "`b"],
9 | ["character", "`Z"]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for characters.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/reference_feature.test:
--------------------------------------------------------------------------------
1 | foo
2 | foo_bar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["reference", "foo"],
8 | ["reference", "foo_bar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for reference.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 | ''
4 | 'fo\'obar'
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"obar\""],
11 | ["string", "''"],
12 | ["string", "'fo\\'obar'"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for single-quoted and double-quoted strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rip/symbol_feature.test:
--------------------------------------------------------------------------------
1 | :foo
2 | :foobar42
3 | :foo_bar
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["symbol", ":foo"],
9 | ["symbol", ":foobar42"],
10 | ["symbol", ":foo_bar"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for symbols.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/roboconf/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # Foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# Foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/roboconf/optional_feature.test:
--------------------------------------------------------------------------------
1 | (optional)
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["optional", "(optional)"]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for optional flag.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/roboconf/wildcard_feature.test:
--------------------------------------------------------------------------------
1 | load-balance-able.*
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | "load-balance-able", ["punctuation", "."],
7 | ["wildcard", "*"]
8 | ]
9 |
10 | ----------------------------------------------------
11 |
12 | Checks for wildcards.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ruby/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/ruby/symbol_feature.test:
--------------------------------------------------------------------------------
1 | :_
2 | :foo
3 | :BAR?
4 | :Baz_42!
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["symbol", ":_"],
10 | ["symbol", ":foo"],
11 | ["symbol", ":BAR?"],
12 | ["symbol", ":Baz_42!"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for symbols.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rust/attribute_feature.test:
--------------------------------------------------------------------------------
1 | #[test]
2 | #![warn(unstable)]
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["attribute", "#[test]"],
8 | ["attribute", "#![warn(unstable)]"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for attributes.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rust/comment_feature.test:
--------------------------------------------------------------------------------
1 | //
2 | // foobar
3 | /**/
4 | /* foo
5 | bar */
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "//"],
11 | ["comment", "// foobar"],
12 | ["comment", "/**/"],
13 | ["comment", "/* foo\r\nbar */"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/rust/macro-rules_feature.test:
--------------------------------------------------------------------------------
1 | foo!
2 | foo_bar!
3 | foo_bar_42!
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["macro-rules", "foo!"],
9 | ["macro-rules", "foo_bar!"],
10 | ["macro-rules", "foo_bar_42!"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for macro rules.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/sas/comment_feature.test:
--------------------------------------------------------------------------------
1 | * foobar;
2 | foo; * foobar;
3 | /* foo
4 | bar */
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "* foobar;"],
10 | "\r\nfoo", ["punctuation", ";"],
11 | ["comment", "* foobar;"],
12 | ["comment", "/* foo\r\nbar */"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/sas/datetime_feature.test:
--------------------------------------------------------------------------------
1 | '1jan2013'd
2 | '9:25:19pm't
3 | '18jan2003:9:27:05am'dt
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["datetime", "'1jan2013'd"],
9 | ["datetime", "'9:25:19pm't"],
10 | ["datetime", "'18jan2003:9:27:05am'dt"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for date, times and datetimes.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scala/symbol_feature.test:
--------------------------------------------------------------------------------
1 | 'foo
2 | 'foo_42
3 | 'foo_bar
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["symbol", "'foo"],
9 | ["symbol", "'foo_42"],
10 | ["symbol", "'foo_bar"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for symbols.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scheme/boolean_feature.test:
--------------------------------------------------------------------------------
1 | #t
2 | #f
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "#t"],
8 | ["boolean", "#f"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scheme/comment_feature.test:
--------------------------------------------------------------------------------
1 | ;
2 | ; foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", ";"],
8 | ["comment", "; foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scheme/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 | 'turkey
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["string", "\"\""],
9 | ["string", "\"fo\\\"obar\""],
10 | ["string", "'turkey"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for strings and symbols.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scss+jade/scss_inclusion.test:
--------------------------------------------------------------------------------
1 | :sass
2 | @extend .foo;
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["filter-sass", [
8 | ["filter-name", ":sass"],
9 | ["keyword", "@extend"],
10 | " .foo",
11 | ["punctuation", ";"]
12 | ]]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for sass filter (Scss) in Jade.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scss/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scss/comment_feature.test:
--------------------------------------------------------------------------------
1 | //
2 | // foobar
3 | /**/
4 | /* foo
5 | bar */
6 |
7 |
8 | ----------------------------------------------------
9 |
10 | [
11 | ["comment", "//"],
12 | ["comment", "// foobar"],
13 | ["comment", "/**/"],
14 | ["comment", "/* foo\r\nbar */"]
15 | ]
16 |
17 | ----------------------------------------------------
18 |
19 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scss/null_feature.test:
--------------------------------------------------------------------------------
1 | null
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["null", "null"]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for null.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/scss/placeholder_feature.test:
--------------------------------------------------------------------------------
1 | %foobar
2 | %foo-bar
3 | %foo_bar
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["placeholder", "%foobar"],
9 | ["placeholder", "%foo-bar"],
10 | ["placeholder", "%foo_bar"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for placeholders.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/smalltalk/character_feature.test:
--------------------------------------------------------------------------------
1 | $a
2 | $4
3 | $.
4 | $^
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["character", "$a"],
10 | ["character", "$4"],
11 | ["character", "$."],
12 | ["character", "$^"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for characters.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/smalltalk/comment_feature.test:
--------------------------------------------------------------------------------
1 | "foobar"
2 | "foo""bar
3 | baz"
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["comment", "\"foobar\""],
9 | ["comment", "\"foo\"\"bar\r\nbaz\""]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/smalltalk/keyword_feature.test:
--------------------------------------------------------------------------------
1 | nil true false
2 | self super new
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["keyword", "nil"], ["keyword", "true"], ["keyword", "false"],
8 | ["keyword", "self"], ["keyword", "super"], ["keyword", "new"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for keywords.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/smalltalk/string_feature.test:
--------------------------------------------------------------------------------
1 | 'foobar'
2 | 'foo''bar
3 | baz'
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["string", "'foobar'"],
9 | ["string", "'foo''bar\r\nbaz'"]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/smarty/smarty-comment_feature.test:
--------------------------------------------------------------------------------
1 | {**}
2 | {* foo
3 | bar *}
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["smarty-comment", "{**}"],
9 | ["smarty-comment", "{* foo\r\nbar *}"]
10 | ]
11 |
12 | ----------------------------------------------------
13 |
14 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/sql/boolean_feature.test:
--------------------------------------------------------------------------------
1 | TRUE
2 | FALSE
3 | NULL
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["boolean", "TRUE"],
9 | ["boolean", "FALSE"],
10 | ["boolean", "NULL"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/stylus/comment_feature.test:
--------------------------------------------------------------------------------
1 | /**/
2 | /* foo
3 | bar */
4 | //
5 | // foobar
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "/**/"],
11 | ["comment", "/* foo\r\nbar */"],
12 | ["comment", "//"],
13 | ["comment", "// foobar"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/swift/constant_feature.test:
--------------------------------------------------------------------------------
1 | nil
2 | AB
3 | FOO_BAR
4 | kAb
5 | kFoo_bar
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["constant", "nil"],
11 | ["constant", "AB"],
12 | ["constant", "FOO_BAR"],
13 | ["constant", "kAb"],
14 | ["constant", "kFoo_bar"]
15 | ]
16 |
17 | ----------------------------------------------------
18 |
19 | Checks for constants.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/tcl/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/tcl/scope_feature.test:
--------------------------------------------------------------------------------
1 | global
2 | upvar
3 | variable
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["scope", "global"],
9 | ["scope", "upvar"],
10 | ["scope", "variable"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for scopes.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/tcl/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 | "fo\"o\
4 | bar"
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"obar\""],
11 | ["string", "\"fo\\\"o\\\r\nbar\""]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/twig/comment_feature.test:
--------------------------------------------------------------------------------
1 | {##}
2 | {# foo #}
3 | {# foo
4 | bar #}
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["comment", "{##}"],
10 | ["comment", "{# foo #}"],
11 | ["comment", "{# foo\r\nbar #}"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/verilog/comment_feature.test:
--------------------------------------------------------------------------------
1 | //
2 | // Foobar
3 | /**/
4 | /* foo
5 | bar */
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["comment", "//"],
11 | ["comment", "// Foobar"],
12 | ["comment", "/**/"],
13 | ["comment", "/* foo\r\nbar */"]
14 | ]
15 |
16 | ----------------------------------------------------
17 |
18 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/verilog/constant_feature.test:
--------------------------------------------------------------------------------
1 | `define
2 | `UNKNOWN
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["constant", "`define"],
8 | ["constant", "`UNKNOWN"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for user defined constants.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/verilog/property_feature.test:
--------------------------------------------------------------------------------
1 | $display()
2 |
3 | ----------------------------------------------------
4 |
5 | [
6 | ["property", "$display"], ["punctuation", "("], ["punctuation", ")"]
7 | ]
8 |
9 | ----------------------------------------------------
10 |
11 | Checks for kernel functions.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/verilog/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"obar"
3 | "foo\
4 | bar"
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"obar\""],
11 | ["string", "\"foo\\\r\nbar\""]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vhdl/boolean_feature.test:
--------------------------------------------------------------------------------
1 | true
2 | false
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["boolean", "true"],
8 | ["boolean", "false"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for booleans.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vhdl/comment_feature.test:
--------------------------------------------------------------------------------
1 | -- Foo
2 | --foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "-- Foo"],
8 | ["comment", "--foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vhdl/constant_feature.test:
--------------------------------------------------------------------------------
1 | use
2 | library
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["constant", "use"],
8 | ["constant", "library"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for constants.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vhdl/string_feature.test:
--------------------------------------------------------------------------------
1 | ""
2 | "fo\"o"
3 | "fo\"o\
4 | bar"
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["string", "\"\""],
10 | ["string", "\"fo\\\"o\""],
11 | ["string", "\"fo\\\"o\\\r\nbar\""]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for strings.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vim/comment_feature.test:
--------------------------------------------------------------------------------
1 | "
2 | " Foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "\""],
8 | ["comment", "\" Foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/vim/number_feature.test:
--------------------------------------------------------------------------------
1 | 0xBadFace
2 | 42
3 | 3.14159
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["number", "0xBadFace"],
9 | ["number", "42"],
10 | ["number", "3.14159"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for numbers.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/wiki/block-comment_feature.test:
--------------------------------------------------------------------------------
1 | /**/
2 | /* foo */
3 | /* foo
4 | bar */
5 |
6 | ----------------------------------------------------
7 |
8 | [
9 | ["block-comment", "/**/"],
10 | ["block-comment", "/* foo */"],
11 | ["block-comment", "/* foo\r\nbar */"]
12 | ]
13 |
14 | ----------------------------------------------------
15 |
16 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/wiki/hr_feature.test:
--------------------------------------------------------------------------------
1 | ----
2 | -----
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["hr", "----"],
8 | ["hr", "-----"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for horizontal rows.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/comment_feature.test:
--------------------------------------------------------------------------------
1 | #
2 | # foobar
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["comment", "#"],
8 | ["comment", "# foobar"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for comments.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/directive_feature.test:
--------------------------------------------------------------------------------
1 | %YAML 1.2
2 | %TAG
3 |
4 | ----------------------------------------------------
5 |
6 | [
7 | ["directive", "%YAML 1.2"],
8 | ["directive", "%TAG"]
9 | ]
10 |
11 | ----------------------------------------------------
12 |
13 | Checks for directives.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/important_feature.test:
--------------------------------------------------------------------------------
1 | &B1
2 | &A
3 | *A
4 | &SS
5 | *SS
6 |
7 | ----------------------------------------------------
8 |
9 | [
10 | ["important", "&B1"],
11 | ["important", "&A"],
12 | ["important", "*A"],
13 | ["important", "&SS"],
14 | ["important", "*SS"]
15 | ]
16 |
17 | ----------------------------------------------------
18 |
19 | Checks for important.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/key_feature.test:
--------------------------------------------------------------------------------
1 | ---
2 | foo: 4
3 | FooBar : 5
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["punctuation", "---"],
9 | ["key", "foo"], ["punctuation", ":"], ["number", "4"],
10 | ["key", "FooBar"], ["punctuation", ":"], ["number", "5"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for keys.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/null_feature.test:
--------------------------------------------------------------------------------
1 | ---
2 | foo: null
3 | bar: ~
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["punctuation", "---"],
9 | ["key", "foo"], ["punctuation", ":"],
10 | ["null", "null"],
11 | ["key", "bar"], ["punctuation", ":"],
12 | ["null", "~"]
13 | ]
14 |
15 | ----------------------------------------------------
16 |
17 | Checks for null and ~.
--------------------------------------------------------------------------------
/node_modules/prismjs/tests/languages/yaml/tag_feature.test:
--------------------------------------------------------------------------------
1 | !!map
2 | !!str
3 | !!seq
4 |
5 | ----------------------------------------------------
6 |
7 | [
8 | ["tag", "!!map"],
9 | ["tag", "!!str"],
10 | ["tag", "!!seq"]
11 | ]
12 |
13 | ----------------------------------------------------
14 |
15 | Checks for tags
--------------------------------------------------------------------------------
/node_modules/process-nextick-args/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.11"
6 | - "0.12"
7 | - "1.7.1"
8 | - 1
9 | - 2
10 | - 3
11 | - 4
12 | - 5
13 |
--------------------------------------------------------------------------------
/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
6 | .zuul.yml
7 | .nyc_output
8 | coverage
9 | docs/
10 |
--------------------------------------------------------------------------------
/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/node_modules/sitemap/.npmignore:
--------------------------------------------------------------------------------
1 | tests/
2 | node_modules/
3 | env/
4 | Makefile
5 | *.swp
6 |
--------------------------------------------------------------------------------
/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/node_modules/url-join/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules/*
2 | *.log
--------------------------------------------------------------------------------
/node_modules/url-join/lib/url-join.js:
--------------------------------------------------------------------------------
1 | function normalize (str) {
2 | return str
3 | .replace(/[\/]+/g, '/')
4 | .replace(/\/\?/g, '?')
5 | .replace(/\/\#/g, '#')
6 | .replace(/\:\//g, '://');
7 | }
8 |
9 | module.exports = function () {
10 | var joined = [].slice.call(arguments, 0).join('/');
11 | return normalize(joined);
12 | };
--------------------------------------------------------------------------------
/node_modules/util-deprecate/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.2 / 2015-10-07
3 | ==================
4 |
5 | * use try/catch when checking `localStorage` (#3, @kumavis)
6 |
7 | 1.0.1 / 2014-11-25
8 | ==================
9 |
10 | * browser: use `console.warn()` for deprecation calls
11 | * browser: more jsdocs
12 |
13 | 1.0.0 / 2014-04-30
14 | ==================
15 |
16 | * initial commit
17 |
--------------------------------------------------------------------------------
/node_modules/util-deprecate/node.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * For Node.js, simply re-export the core `util.deprecate` function.
4 | */
5 |
6 | module.exports = require('util').deprecate;
7 |
--------------------------------------------------------------------------------
/plugin.md:
--------------------------------------------------------------------------------
1 | # 插件
2 |
3 | 插件是用于实现简单的显示及数据处理的功能扩展。插件是可以开启关闭的,但不会影响原有系统的代码;
4 |
5 | 插件结构:
6 |
7 | 插件结构图
8 |
9 | 
10 |
11 |
12 | 以Demo插件为例:
13 |
14 | Controller //控制器目录
15 |
16 | Model //插件自定义模型目录
17 | View //模板目录,可以配置多个主题
18 | config.php //模板配置文件
19 |
20 | DemoPlugin.class.php 插件主文件,格式为:插件名+Plugin.class.php
21 |
22 | README.txt 说明文件
23 |
24 | lisense.txt 授权协议文件
25 |
26 |
--------------------------------------------------------------------------------
/portal.md:
--------------------------------------------------------------------------------
1 | # 门户应用
2 |
3 |
--------------------------------------------------------------------------------
/portal/base.md:
--------------------------------------------------------------------------------
1 | # 基础
2 |
3 |
--------------------------------------------------------------------------------
/portal/cover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/portal/cover.jpg
--------------------------------------------------------------------------------
/portal/functions.md:
--------------------------------------------------------------------------------
1 | # 函数库
2 |
3 |
--------------------------------------------------------------------------------
/portal/functions/sp_sql_page.md:
--------------------------------------------------------------------------------
1 | # sp_sql_page()
2 | ```php
3 | sp_sql_page($id)
4 | ```
5 |
6 | 功能:
7 | 获取指定id的页面
8 |
9 | 参数:
10 | `$id`:页面的id
11 |
12 | 返回:
13 | 类型数组,符合条件的页面
14 |
15 | 示例:
16 | ```php
17 | X2.2.0新增
4 |
5 | ```php
6 | sp_get_all_child_terms($term_id)
7 | ```
8 |
9 | ###### 功能:
10 | 指定分类下的所有子分类
11 |
12 | ###### 参数:
13 | `$term_id`: 分类id
14 |
15 | ###### 返回:
16 | 类型array,指定分类下的所有子分类
17 |
18 | ###### 使用:
19 | ```php
20 | $terms = sp_get_all_child_terms(1);
21 | ```
22 |
23 |
24 |
--------------------------------------------------------------------------------
/portal/spgetbreadcrumb.md:
--------------------------------------------------------------------------------
1 | # sp_get_breadcrumb()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_get_breadcrumb($term_id)
7 | ```
8 |
9 | ###### 功能:
10 | 获取面包屑数据
11 |
12 | ###### 参数:
13 | `$term_id`: 当前文章所在分类id,或者当前分类的id
14 |
15 | ###### 返回:
16 | 类型array,面包屑数据
17 |
18 | ###### 使用:
19 | ```php
20 | $breadcrumb = sp_get_breadcrumb(3);
21 | ```
--------------------------------------------------------------------------------
/portal/template.md:
--------------------------------------------------------------------------------
1 | # 门户模板制作
2 |
3 |
--------------------------------------------------------------------------------
/portal/template/QQ截图20160411184412.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/portal/template/QQ截图20160411184412.png
--------------------------------------------------------------------------------
/portal/template/QQ截图20160411185412.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/portal/template/QQ截图20160411185412.png
--------------------------------------------------------------------------------
/portal/wenzhang_xiang_ce_zhi_zuo_md.md:
--------------------------------------------------------------------------------
1 | # 文章相册制作
2 |
3 | ```php
4 | $smeta=json_decode($vo['smeta'], true);
5 |
6 |
<
7 |
8 |
9 |
10 | 作者:小夏
11 |
12 | ```
--------------------------------------------------------------------------------
/portal/文章列表相册功能制作.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/portal/文章列表相册功能制作.md
--------------------------------------------------------------------------------
/portal/瀑布流文章列表模板制作.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/portal/瀑布流文章列表模板制作.md
--------------------------------------------------------------------------------
/restful-api.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/restful-api.md
--------------------------------------------------------------------------------
/sp_check_lang.md:
--------------------------------------------------------------------------------
1 | # sp\_check\_lang\(\)
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_check_lang()
7 | ```
8 |
9 | 功能:
10 | 判断当前的语言包,并返回语言包名
11 |
12 | 参数:
13 | 无
14 |
15 | 返回:
16 | 类型string 包名,如:zh-cn
17 |
18 | 使用:
19 |
20 | ```php
21 | $lang=sp_check_lang();
22 | ```
23 |
24 |
--------------------------------------------------------------------------------
/spchecklang.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/spchecklang.md
--------------------------------------------------------------------------------
/special.md:
--------------------------------------------------------------------------------
1 | # 专题
2 |
3 |
--------------------------------------------------------------------------------
/special/cache.md:
--------------------------------------------------------------------------------
1 | # 缓存
2 |
3 | ThinkPHP支持多种缓存方式,ThinkCMF同样适用,详细方式请参考:
4 | http://www.kancloud.cn/manual/thinkphp/1834
5 |
--------------------------------------------------------------------------------
/special/cookie.md:
--------------------------------------------------------------------------------
1 | # Cookie支持
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1873
4 |
5 |
--------------------------------------------------------------------------------
/special/fileupload.md:
--------------------------------------------------------------------------------
1 | # 文件上传
--------------------------------------------------------------------------------
/special/safe.md:
--------------------------------------------------------------------------------
1 | # 安全
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1840
--------------------------------------------------------------------------------
/special/session.md:
--------------------------------------------------------------------------------
1 | # SESSION支持
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1872
4 |
5 |
--------------------------------------------------------------------------------
/spgetassetuploadpath.md:
--------------------------------------------------------------------------------
1 | # sp_get_asset_upload_path()
2 |
3 | > X1.6.0新增
4 |
5 | ```php
6 | sp_get_asset_upload_path($file,$style='')
7 | ```
8 |
9 | ###### 功能:
10 | 转化数据库保存的文件路径,为可以访问的url
11 |
12 | ###### 参数:
13 | `$file`: 数据库保存的文件路径
14 | `$style`:样式(七牛)
15 |
16 | ###### 返回:
17 | 类型string,文件可以访问的url
18 |
19 |
20 | ###### 使用:
21 | ```php
22 | $url = sp_get_asset_upload_path('portal/23232.png');
23 | ```
24 |
25 |
26 |
--------------------------------------------------------------------------------
/spgetcurrenttheme.md:
--------------------------------------------------------------------------------
1 | # sp_get_current_theme()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_get_current_theme($default_theme='')
7 |
8 | ```
9 |
10 | ###### 功能:
11 | 获取当前主题名
12 |
13 | ###### 参数:
14 | `$default_theme`: 指定的默认主题
15 |
16 | ###### 返回:
17 | 类型string,主题名
18 |
19 | ###### 使用:
20 | ```php
21 | $theme = sp_get_current_theme();
22 | ```
23 |
--------------------------------------------------------------------------------
/spgetimagepreviewurl.md:
--------------------------------------------------------------------------------
1 | # sp_get_image_preview_url()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_get_image_preview_url($file,$style='watermark')
7 | ```
8 |
9 | ###### 功能:
10 | 获取图片预览链接
11 |
12 | ###### 参数:
13 | `$file`: 数据库中保存的文件名
14 | `$style`:样式(七牛)
15 |
16 | ###### 返回:
17 | 类型string,图片预览链接
18 |
19 | ###### 使用:
20 | ```php
21 | $url = sp_get_image_preview_url('portal/23232.png');
22 | ```
23 |
--------------------------------------------------------------------------------
/spgetimageurl.md:
--------------------------------------------------------------------------------
1 | # sp_get_image_url()
2 |
3 |
4 | > X2.2.0新增
5 |
6 | ```php
7 | sp_get_image_url($file,$style='')
8 | ```
9 |
10 | ###### 功能:
11 | 转化数据库保存图片的文件路径,为可以访问的url
12 |
13 | ###### 参数:
14 | `$file`: 数据库中保存的文件名
15 |
16 | `$style`:样式(七牛)
17 |
18 |
19 | ###### 返回:
20 | 类型string,图片可以访问的url
21 |
22 |
23 | ###### 使用:
24 | ```php
25 | $url = sp_get_image_url('portal/23232.png');
26 | ```
27 |
28 |
29 |
--------------------------------------------------------------------------------
/spgetuseravatarurl.md:
--------------------------------------------------------------------------------
1 | # sp_get_user_avatar_url()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_get_user_avatar_url($avatar)
7 | ```
8 |
9 | ###### 功能:
10 | 获取用户头像地址
11 |
12 | ###### 参数:
13 | `$avatar`: 数据库中保存的用户头像文件路径
14 |
15 | ###### 返回:
16 | 类型string,用户头像地址
17 |
18 |
19 | ###### 使用:
20 | ```php
21 | $url = sp_get_user_avatar_url('avatart/2231rweqrqwer.png');
22 | echo $url;//输出用户头像地址
23 | ```
24 |
--------------------------------------------------------------------------------
/spisweixin.md:
--------------------------------------------------------------------------------
1 | # sp_is_weixin()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_is_weixin()
7 | ```
8 |
9 | ###### 功能:
10 | 判断是否为微信访问
11 |
12 | ###### 参数:
13 | 无
14 |
15 | ###### 返回:
16 | 类型boolean,true为微信访问
17 |
18 | ###### 使用:
19 | ```php
20 | $is_weixin = sp_is_weixin();
21 | ```
22 |
23 |
24 |
--------------------------------------------------------------------------------
/spsetoption.md:
--------------------------------------------------------------------------------
1 | # sp_set_option()
2 |
3 | > X2.2.0新增
4 |
5 | ```php
6 | sp_set_option($key,$data)
7 | ```
8 |
9 | ###### 功能:
10 | 设置系统配置,通用
11 |
12 | ###### 参数:
13 | `$key`: 配置的键名,英文下划线小写,最好加上自己的应用或插件名作为前级
14 | `$data`:配置的值,数组
15 |
16 | ###### 返回:
17 | 类型boolean,true设置成功
18 |
19 | ###### 使用:
20 | ```php
21 | $result = sp_set_option('portal_custom_settings',array('test'=>1));
22 |
23 | ```
24 |
25 |
26 |
--------------------------------------------------------------------------------
/theme.md:
--------------------------------------------------------------------------------
1 | # 模板
2 |
3 |
--------------------------------------------------------------------------------
/theme/base.md:
--------------------------------------------------------------------------------
1 | # 基础
2 |
3 |
--------------------------------------------------------------------------------
/theme/base/comments.md:
--------------------------------------------------------------------------------
1 | # 模板注释
2 | js注释:
3 |
4 | ```html
5 |
8 | ```
9 |
10 | css注释
11 |
12 | ```html
13 |
16 | ```
17 |
18 | html注释
19 | ```html
20 |
21 |
22 |
23 | ```
24 |
25 | php标签里的注释
26 | ```html
27 |
28 | /*一定要用这个方法,用//会在debug关时出问题*/
29 |
30 | ```
31 |
--------------------------------------------------------------------------------
/theme/base/constant.md:
--------------------------------------------------------------------------------
1 | # 模板常量
2 |
3 | `__ROOT__`:
4 | 网站根目录,不带/;
5 |
6 | `__WEB_ROOT__`:
7 | 网站资源根目录,不带/,如果以前版本用`__ROOT__`来定位网站资源,x2.2.0以后最好用这个常量,方便以后cdn切换
8 |
9 | `__TMPL__`:
10 | 当前模板根目录,带/;
11 | 如:前台 simplebootx 模板根目录是/themes/simplebootx/
12 | 后台 simplebootx模板根目录是/admin/themes/simplebootx/
13 |
14 | `__PUBLIC__`:
15 | public目录,不带/;
--------------------------------------------------------------------------------
/theme/base/default_value_echo.md:
--------------------------------------------------------------------------------
1 | # 默认值输出
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1797
--------------------------------------------------------------------------------
/theme/base/include.md:
--------------------------------------------------------------------------------
1 | # 包含文件
2 |
3 | ## tc_include
4 |
5 | tc_include是前台模板包含文件的方法,用于替换原来的include的标签,实现更多功能
6 |
7 | 用法:
8 |
9 | ```html
10 |
11 |
12 |
13 |
14 | ```
--------------------------------------------------------------------------------
/theme/base/literal.md:
--------------------------------------------------------------------------------
1 | # 原样输出
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1820
4 |
--------------------------------------------------------------------------------
/theme/base/operator.md:
--------------------------------------------------------------------------------
1 | # 使用运算符
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1798
--------------------------------------------------------------------------------
/theme/base/ternary_operator.md:
--------------------------------------------------------------------------------
1 | # 三元运算
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1802
--------------------------------------------------------------------------------
/theme/base/use_functions.md:
--------------------------------------------------------------------------------
1 | # 使用函数
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1796
--------------------------------------------------------------------------------
/theme/base/var_echo.md:
--------------------------------------------------------------------------------
1 | # 变量输出
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1794
--------------------------------------------------------------------------------
/theme/empty标签.md:
--------------------------------------------------------------------------------
1 | # Empty标签
2 |
3 |
--------------------------------------------------------------------------------
/theme/js/js-ajax-delete.md:
--------------------------------------------------------------------------------
1 | # js-ajax-delete
2 |
3 | ajax 删除组件
4 | ```html
5 | 删除
6 | ```
7 |
8 | 功能:
9 |
10 | 加上js-ajax-delete类名的a标签在单击后,会出现一个对话框,提示用户一些信息(信息内容为data-msg的属性值),用户确定后会进行一个 ajax 请求,请求的 url为
11 |
12 | href 属性的值,请求成功返回后,会刷新当前界面。
13 |
14 |
--------------------------------------------------------------------------------
/theme/js/js-ajax-dialog-btn.md:
--------------------------------------------------------------------------------
1 | # js-ajax-dialog-btn
2 |
3 | ajax 对话框组件
4 | ```html
5 | 还原
6 | ```
7 |
8 | 功能:
9 | 加上js-ajax-dialog-btn类名的a标签在单击后,会出现一个对话框,提示用户一些信息(信息内容为data-msg的属性值),用户确定后会进行一个 ajax 请求,请求的 url为
10 |
11 | href 属性的值,请求成功返回后,会刷新当前界面。
--------------------------------------------------------------------------------
/theme/js/js-count-btn.md:
--------------------------------------------------------------------------------
1 | # js-count-btn
2 |
3 | 前台数量操作组件
4 |
5 | ```html
6 |
7 |
8 | 0
9 |
10 | ```
11 |
12 | 功能:
13 | 加上js-count-btn类名的a标签为可以实现数量增加的 ajax操作;ajax执行成功返回后对其内类名包含count的标签进行数量加1操作;
14 | ajax 请求的 url 为 a标签的 href 属性;
--------------------------------------------------------------------------------
/theme/js/js-date.md:
--------------------------------------------------------------------------------
1 | # js-date
2 |
3 | 日期选择组件
4 | ```html
5 |
6 | ```
7 |
8 | 功能:
9 |
10 | 加上js-date类名的text input标签在用户输入时间时,会弹出一个日历让用户选择日期
--------------------------------------------------------------------------------
/theme/js/js-datetime.md:
--------------------------------------------------------------------------------
1 | # js-datetime
2 |
3 | 时间选择组件
4 | ```html
5 |
6 | ```
7 |
8 | 功能:
9 |
10 | 加上js-datetime类名的text input标签在用户输入时间时,会弹出一个日历让用户选择时间
--------------------------------------------------------------------------------
/theme/js_components.md:
--------------------------------------------------------------------------------
1 | # 前端组件
2 |
3 |
--------------------------------------------------------------------------------
/theme/public.md:
--------------------------------------------------------------------------------
1 | # 公共模板
2 |
3 |
--------------------------------------------------------------------------------
/theme/public/ad.md:
--------------------------------------------------------------------------------
1 | # 广告位制作
2 |
3 | 在文章底部加一个广告:
4 |
5 | 到后台扩展工具->网站广告->添加广告名称 为'portal_article_bottom'的广告,同时加上广告代码;
6 |
7 | 模板里代码如下:
8 | ```php
9 |
10 | {:sp_getad("portal_article_bottom")}
11 |
12 | ```
13 |
14 |
--------------------------------------------------------------------------------
/theme/tags/assign.md:
--------------------------------------------------------------------------------
1 | # Assign标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1815
--------------------------------------------------------------------------------
/theme/tags/between.md:
--------------------------------------------------------------------------------
1 | # 范围判断标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1810
--------------------------------------------------------------------------------
/theme/tags/compare.md:
--------------------------------------------------------------------------------
1 | # 比较标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1809
--------------------------------------------------------------------------------
/theme/tags/define.md:
--------------------------------------------------------------------------------
1 | # Define标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1816
4 |
--------------------------------------------------------------------------------
/theme/tags/defined.md:
--------------------------------------------------------------------------------
1 | # Defined标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1814
--------------------------------------------------------------------------------
/theme/tags/empty.md:
--------------------------------------------------------------------------------
1 | # Empty标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1813
--------------------------------------------------------------------------------
/theme/tags/for.md:
--------------------------------------------------------------------------------
1 | # for
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1807
--------------------------------------------------------------------------------
/theme/tags/foreach.md:
--------------------------------------------------------------------------------
1 | # foreach
2 |
3 | foreach标签
4 |
5 | 属性
6 | `name`:表示数据源;
7 | `item`:表示循环变量;
8 |
9 | ```html
10 |
11 | {$vo.name} {$key}
12 |
13 | ```
14 |
15 | 更改属性key的变量名:
16 | ```html
17 |
18 | {$vo.name} {$k}
19 |
20 | ```
21 |
--------------------------------------------------------------------------------
/theme/tags/if_else.md:
--------------------------------------------------------------------------------
1 | # if else
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1811
--------------------------------------------------------------------------------
/theme/tags/nest.md:
--------------------------------------------------------------------------------
1 | # 标签嵌套
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1817
--------------------------------------------------------------------------------
/theme/tags/php.md:
--------------------------------------------------------------------------------
1 | # php
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1819
--------------------------------------------------------------------------------
/theme/tags/present.md:
--------------------------------------------------------------------------------
1 | # Present标签
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1812
--------------------------------------------------------------------------------
/theme/tags/switch.md:
--------------------------------------------------------------------------------
1 | # switch
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1808
4 |
5 |
--------------------------------------------------------------------------------
/theme/tags/tc_include.md:
--------------------------------------------------------------------------------
1 | # tc_include
2 |
3 | tc_include是前台模板包含文件的方法,用于替换原来的include的标签,实现更多功能
4 |
5 | 用法:
6 | ```html
7 |
8 |
9 |
10 |
11 | ```
--------------------------------------------------------------------------------
/theme/tags/volist.md:
--------------------------------------------------------------------------------
1 | # volist
2 |
3 | 请参考:http://www.kancloud.cn/manual/thinkphp/1805
--------------------------------------------------------------------------------
/theme/三元运算.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/theme/三元运算.md
--------------------------------------------------------------------------------
/theme/前台模板多语言.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/theme/前台模板多语言.md
--------------------------------------------------------------------------------
/theme/包含文件.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/theme/包含文件.md
--------------------------------------------------------------------------------
/theme/原样输出.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/theme/原样输出.md
--------------------------------------------------------------------------------
/view.md:
--------------------------------------------------------------------------------
1 | # 视图
2 |
3 |
--------------------------------------------------------------------------------
/view/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/view/README.md
--------------------------------------------------------------------------------
/插件多语言.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/thinkcmf/cmfx_doc/3a2805658e4c016407315f2d56d6155d1e697a1c/插件多语言.md
--------------------------------------------------------------------------------
/钩子,插件与模板.md:
--------------------------------------------------------------------------------
1 | #钩子,插件与模板
--------------------------------------------------------------------------------