forked from GNUsocial/gnu-social
[COMPOSER] Add new php-ffmpeg package
This commit is contained in:
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_000_empty.ast
vendored
Normal file
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_000_empty.ast
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
0
vendor/zetacomponents/document/tests/files/bbcode/parser/s_000_empty.txt
vendored
Normal file
0
vendor/zetacomponents/document/tests/files/bbcode/parser/s_000_empty.txt
vendored
Normal file
60
vendor/zetacomponents/document/tests/files/bbcode/parser/s_001_bold.ast
vendored
Normal file
60
vendor/zetacomponents/document/tests/files/bbcode/parser/s_001_bold.ast
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 8,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 2,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Hello',
|
||||
'line' => 1,
|
||||
'position' => 2,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'b',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 8,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_001_bold.txt
vendored
Normal file
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_001_bold.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[b]Hello[/b]
|
74
vendor/zetacomponents/document/tests/files/bbcode/parser/s_002_italic.ast
vendored
Normal file
74
vendor/zetacomponents/document/tests/files/bbcode/parser/s_002_italic.ast
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 17,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This is ',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 9,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 10,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Great!',
|
||||
'line' => 1,
|
||||
'position' => 10,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'i',
|
||||
'line' => 1,
|
||||
'position' => 9,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 17,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_002_italic.txt
vendored
Normal file
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_002_italic.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
This is [i]Great![/i]
|
60
vendor/zetacomponents/document/tests/files/bbcode/parser/s_003_underline.ast
vendored
Normal file
60
vendor/zetacomponents/document/tests/files/bbcode/parser/s_003_underline.ast
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 15,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 2,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Good Morning',
|
||||
'line' => 1,
|
||||
'position' => 2,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'u',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 15,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 2,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_003_underline.txt
vendored
Normal file
1
vendor/zetacomponents/document/tests/files/bbcode/parser/s_003_underline.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[u]Good Morning[/u]
|
133
vendor/zetacomponents/document/tests/files/bbcode/parser/s_004_colored.ast
vendored
Normal file
133
vendor/zetacomponents/document/tests/files/bbcode/parser/s_004_colored.ast
vendored
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 17,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Hello!',
|
||||
'line' => 1,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'red',
|
||||
'content' => 'color',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 17,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 3,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'or',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 3,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 17,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Hello!',
|
||||
'line' => 5,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '#FF0000',
|
||||
'content' => 'color',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 17,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_004_colored.txt
vendored
Normal file
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_004_colored.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[color=red]Hello![/color]
|
||||
|
||||
or
|
||||
|
||||
[color=#FF0000]Hello![/color]
|
191
vendor/zetacomponents/document/tests/files/bbcode/parser/s_005_size.ast
vendored
Normal file
191
vendor/zetacomponents/document/tests/files/bbcode/parser/s_005_size.ast
vendored
Normal file
@@ -0,0 +1,191 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 10,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 14,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'SMALL',
|
||||
'line' => 1,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '30',
|
||||
'content' => 'size',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 14,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 24,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'will generally be SMALL',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 24,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 9,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'whereas:',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 9,
|
||||
)),
|
||||
)),
|
||||
3 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 7,
|
||||
'position' => 14,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 7,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 7,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'HUGE!',
|
||||
'line' => 7,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '200',
|
||||
'content' => 'size',
|
||||
'line' => 7,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 7,
|
||||
'position' => 14,
|
||||
)),
|
||||
)),
|
||||
4 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 14,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'will be HUGE!',
|
||||
'line' => 9,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 9,
|
||||
'position' => 14,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 10,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
9
vendor/zetacomponents/document/tests/files/bbcode/parser/s_005_size.txt
vendored
Normal file
9
vendor/zetacomponents/document/tests/files/bbcode/parser/s_005_size.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[size=30]SMALL[/size]
|
||||
|
||||
will generally be SMALL
|
||||
|
||||
whereas:
|
||||
|
||||
[size=200]HUGE![/size]
|
||||
|
||||
will be HUGE!
|
148
vendor/zetacomponents/document/tests/files/bbcode/parser/s_006_stacked_inline_formatting.ast
vendored
Normal file
148
vendor/zetacomponents/document/tests/files/bbcode/parser/s_006_stacked_inline_formatting.ast
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 31,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Can I combine formatting tags?',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 31,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 77,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Yes, of course you can, for example to get someones attention you may write:',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 77,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 32,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 10,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 11,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'LOOK AT ME!',
|
||||
'line' => 5,
|
||||
'position' => 11,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'b',
|
||||
'line' => 5,
|
||||
'position' => 10,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'red',
|
||||
'content' => 'color',
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '200',
|
||||
'content' => 'size',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 32,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_006_stacked_inline_formatting.txt
vendored
Normal file
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_006_stacked_inline_formatting.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Can I combine formatting tags?
|
||||
|
||||
Yes, of course you can, for example to get someones attention you may write:
|
||||
|
||||
[size=200][color=red][b]LOOK AT ME![/b][/color][/size]
|
161
vendor/zetacomponents/document/tests/files/bbcode/parser/s_007_quotes.ast
vendored
Normal file
161
vendor/zetacomponents/document/tests/files/bbcode/parser/s_007_quotes.ast
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 71,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'For example to quote a piece of text Mr. Blobby wrote you would enter:',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 71,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 50,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'The text Mr. Blobby wrote would go here',
|
||||
'line' => 3,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '"Mr. Blobby"',
|
||||
'content' => 'quote',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 50,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 68,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Inline quotes are also possible, like this: ',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 45,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 50,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Hello World!',
|
||||
'line' => 5,
|
||||
'position' => 50,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'quote',
|
||||
'line' => 5,
|
||||
'position' => 45,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 67,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => '.',
|
||||
'line' => 5,
|
||||
'position' => 67,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 68,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_007_quotes.txt
vendored
Normal file
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_007_quotes.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
For example to quote a piece of text Mr. Blobby wrote you would enter:
|
||||
|
||||
[quote="Mr. Blobby"]The text Mr. Blobby wrote would go here[/quote]
|
||||
|
||||
Inline quotes are also possible, like this: [quote]Hello World![/quote].
|
144
vendor/zetacomponents/document/tests/files/bbcode/parser/s_008_code.ast
vendored
Normal file
144
vendor/zetacomponents/document/tests/files/bbcode/parser/s_008_code.ast
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 59,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This is an inline code example: ',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeInlineLiteralNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 33,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => 'echo "This is some code";',
|
||||
'line' => 1,
|
||||
'position' => 33,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 58,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => '.',
|
||||
'line' => 1,
|
||||
'position' => 58,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 59,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeLiteralBlockNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => 'echo "This is some [b]code[/b] in a literal block";',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 39,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeInlineLiteralNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => 'Hello world',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 12,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeWhitespaceToken::__set_state(array(
|
||||
'content' => ' ',
|
||||
'line' => 5,
|
||||
'position' => 12,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 13,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'is again some inline code.',
|
||||
'line' => 5,
|
||||
'position' => 13,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 39,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_008_code.txt
vendored
Normal file
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_008_code.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
This is an inline code example: [code]echo "This is some code";[/code].
|
||||
|
||||
[code]echo "This is some [b]code[/b] in a literal block";[/code]
|
||||
|
||||
[code]Hello world[/code] is again some inline code.
|
72
vendor/zetacomponents/document/tests/files/bbcode/parser/s_009_code_annotated.ast
vendored
Normal file
72
vendor/zetacomponents/document/tests/files/bbcode/parser/s_009_code_annotated.ast
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 23,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This is some PHP code:',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 23,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeLiteralBlockNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => '
|
||||
93 array(
|
||||
94 \'class\' => \'ezcDocumentBBCodeLiteralBlockToken\',
|
||||
95 \'match\' => \'(\\\\A(?P<match>\\\\[code\\\\](?P<value>.+)\\\\[/code\\\\]))SUs\' ),
|
||||
96 array(
|
||||
97 \'class\' => \'ezcDocumentBBCodeListItemToken\',
|
||||
98 \'match\' => \'(\\\\A(?P<match>\\\\[\\\\*\\\\]))SUs\' ),
|
||||
99 array(
|
||||
100 \'class\' => \'ezcDocumentBBCodeTagOpenToken\',
|
||||
101 \'match\' => \'(\\\\A(?P<match>\\\\[(?P<value>[A-Za-z]+(?:=[^\\\\]]+))\\\\]))SUs\' ),
|
||||
102 array(
|
||||
103 \'class\' => \'ezcDocumentBBCodeTagCloseToken\',
|
||||
104 \'match\' => \'(\\\\A(?P<match>\\\\[/(?P<value>[A-Za-z]+)\\\\]))SUs\' ),
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_009_code_annotated.txt
vendored
Normal file
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_009_code_annotated.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
This is some PHP code:
|
||||
|
||||
[code=php]
|
||||
93 array(
|
||||
94 'class' => 'ezcDocumentBBCodeLiteralBlockToken',
|
||||
95 'match' => '(\\A(?P<match>\\[code\\](?P<value>.+)\\[/code\\]))SUs' ),
|
||||
96 array(
|
||||
97 'class' => 'ezcDocumentBBCodeListItemToken',
|
||||
98 'match' => '(\\A(?P<match>\\[\\*\\]))SUs' ),
|
||||
99 array(
|
||||
100 'class' => 'ezcDocumentBBCodeTagOpenToken',
|
||||
101 'match' => '(\\A(?P<match>\\[(?P<value>[A-Za-z]+(?:=[^\\]]+))\\]))SUs' ),
|
||||
102 array(
|
||||
103 'class' => 'ezcDocumentBBCodeTagCloseToken',
|
||||
104 'match' => '(\\A(?P<match>\\[/(?P<value>[A-Za-z]+)\\]))SUs' ),
|
||||
[/code]
|
234
vendor/zetacomponents/document/tests/files/bbcode/parser/s_010_bullet_list.ast
vendored
Normal file
234
vendor/zetacomponents/document/tests/files/bbcode/parser/s_010_bullet_list.ast
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 8,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 58,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'For example to list your favourite colours you could use:',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 58,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeBulletListNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Red',
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 4,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 4,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Blue',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 7,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Yellow',
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 7,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 7,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 7,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'list',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 8,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
7
vendor/zetacomponents/document/tests/files/bbcode/parser/s_010_bullet_list.txt
vendored
Normal file
7
vendor/zetacomponents/document/tests/files/bbcode/parser/s_010_bullet_list.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
For example to list your favourite colours you could use:
|
||||
|
||||
[list]
|
||||
[*]Red
|
||||
[*]Blue
|
||||
[*]Yellow
|
||||
[/list]
|
452
vendor/zetacomponents/document/tests/files/bbcode/parser/s_011_enumerated_list.ast
vendored
Normal file
452
vendor/zetacomponents/document/tests/files/bbcode/parser/s_011_enumerated_list.ast
vendored
Normal file
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 13,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'For example:',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 13,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeEnumeratedListNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 16,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Go to the shops',
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 16,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 4,
|
||||
'position' => 16,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 4,
|
||||
'position' => 16,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 19,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Buy a new computer',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 19,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 19,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 19,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 34,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Swear at computer when it crashes',
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 34,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 34,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 34,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '1',
|
||||
'content' => 'list',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 48,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Whereas for an alphabetical list you would use:',
|
||||
'line' => 9,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 9,
|
||||
'position' => 48,
|
||||
)),
|
||||
)),
|
||||
3 =>
|
||||
ezcDocumentBBCodeEnumeratedListNode::__set_state(array(
|
||||
'line' => 11,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 26,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'The first possible answer',
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 26,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 12,
|
||||
'position' => 26,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 12,
|
||||
'position' => 26,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 13,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 13,
|
||||
'position' => 27,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 13,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'The second possible answer',
|
||||
'line' => 13,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 13,
|
||||
'position' => 27,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 13,
|
||||
'position' => 27,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 13,
|
||||
'position' => 27,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 13,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 14,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 14,
|
||||
'position' => 26,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 14,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'The third possible answer',
|
||||
'line' => 14,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 14,
|
||||
'position' => 26,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 14,
|
||||
'position' => 26,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 14,
|
||||
'position' => 26,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 14,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'a',
|
||||
'content' => 'list',
|
||||
'line' => 11,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_011_enumerated_list.txt
vendored
Normal file
16
vendor/zetacomponents/document/tests/files/bbcode/parser/s_011_enumerated_list.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
For example:
|
||||
|
||||
[list=1]
|
||||
[*]Go to the shops
|
||||
[*]Buy a new computer
|
||||
[*]Swear at computer when it crashes
|
||||
[/list]
|
||||
|
||||
Whereas for an alphabetical list you would use:
|
||||
|
||||
[list=a]
|
||||
[*]The first possible answer
|
||||
[*]The second possible answer
|
||||
[*]The third possible answer
|
||||
[/list]
|
||||
|
148
vendor/zetacomponents/document/tests/files/bbcode/parser/s_012_links.ast
vendored
Normal file
148
vendor/zetacomponents/document/tests/files/bbcode/parser/s_012_links.ast
vendored
Normal file
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 19,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Visit phpBB!',
|
||||
'line' => 1,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'http://www.phpbb.com/',
|
||||
'content' => 'url',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 19,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 28,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'http://www.phpbb.com/',
|
||||
'line' => 3,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'url',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 28,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 28,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'no.one@domain.adr',
|
||||
'line' => 5,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'email',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 5,
|
||||
'position' => 28,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_012_links.txt
vendored
Normal file
5
vendor/zetacomponents/document/tests/files/bbcode/parser/s_012_links.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[url=http://www.phpbb.com/]Visit phpBB![/url]
|
||||
|
||||
[url]http://www.phpbb.com/[/url]
|
||||
|
||||
[email]no.one@domain.adr[/email]
|
119
vendor/zetacomponents/document/tests/files/bbcode/parser/s_013_images.ast
vendored
Normal file
119
vendor/zetacomponents/document/tests/files/bbcode/parser/s_013_images.ast
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 56,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'http://www.google.com/intl/en_ALL/images/logo.gif',
|
||||
'line' => 1,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'img',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 56,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 62,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 4,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 7,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'http://www.google.com/intl/en_ALL/images/logo.gif',
|
||||
'line' => 3,
|
||||
'position' => 7,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'img',
|
||||
'line' => 3,
|
||||
'position' => 4,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'http://www.google.com/',
|
||||
'content' => 'url',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 62,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 4,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
3
vendor/zetacomponents/document/tests/files/bbcode/parser/s_013_images.txt
vendored
Normal file
3
vendor/zetacomponents/document/tests/files/bbcode/parser/s_013_images.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[img]http://www.google.com/intl/en_ALL/images/logo.gif[/img]
|
||||
|
||||
[url=http://www.google.com/][img]http://www.google.com/intl/en_ALL/images/logo.gif[/img][/url]
|
597
vendor/zetacomponents/document/tests/files/bbcode/parser/s_014_full_example.ast
vendored
Normal file
597
vendor/zetacomponents/document/tests/files/bbcode/parser/s_014_full_example.ast
vendored
Normal file
@@ -0,0 +1,597 @@
|
||||
<?php
|
||||
|
||||
return ezcDocumentBBCodeDocumentNode::__set_state(array(
|
||||
'line' => 25,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 20,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Full BBCode example',
|
||||
'line' => 1,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 1,
|
||||
'position' => 20,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 33,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'For example using stacked lists:',
|
||||
'line' => 3,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 3,
|
||||
'position' => 33,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeEnumeratedListNode::__set_state(array(
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 16,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Go to the shops',
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 6,
|
||||
'position' => 16,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 16,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 6,
|
||||
'position' => 16,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 6,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 7,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeBulletListNode::__set_state(array(
|
||||
'line' => 8,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 36,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This is second level list item',
|
||||
'line' => 9,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 9,
|
||||
'position' => 36,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 9,
|
||||
'position' => 36,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 9,
|
||||
'position' => 36,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 9,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 10,
|
||||
'position' => 5,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 10,
|
||||
'position' => 25,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 10,
|
||||
'position' => 6,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This is another one',
|
||||
'line' => 10,
|
||||
'position' => 6,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 10,
|
||||
'position' => 25,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 10,
|
||||
'position' => 25,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 10,
|
||||
'position' => 25,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 10,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'list',
|
||||
'line' => 8,
|
||||
'position' => 5,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 7,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeListItemNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 38,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Swear at ',
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 10,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 11,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'computer ',
|
||||
'line' => 12,
|
||||
'position' => 11,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 20,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 21,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'when',
|
||||
'line' => 12,
|
||||
'position' => 21,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'i',
|
||||
'line' => 12,
|
||||
'position' => 20,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => NULL,
|
||||
'content' => 'b',
|
||||
'line' => 12,
|
||||
'position' => 10,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 27,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeWhitespaceToken::__set_state(array(
|
||||
'content' => ' ',
|
||||
'line' => 12,
|
||||
'position' => 27,
|
||||
)),
|
||||
)),
|
||||
3 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 28,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'it crashes',
|
||||
'line' => 12,
|
||||
'position' => 28,
|
||||
)),
|
||||
)),
|
||||
4 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 12,
|
||||
'position' => 38,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 12,
|
||||
'position' => 38,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 12,
|
||||
'position' => 38,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeListItemToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 12,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => '1',
|
||||
'content' => 'list',
|
||||
'line' => 5,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
3 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 54,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'Whereas for an ',
|
||||
'line' => 15,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeTagNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 16,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 19,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'alphabetical list',
|
||||
'line' => 15,
|
||||
'position' => 19,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTagOpenToken::__set_state(array(
|
||||
'parameters' => 'http://example.com',
|
||||
'content' => 'url',
|
||||
'line' => 15,
|
||||
'position' => 16,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 39,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeWhitespaceToken::__set_state(array(
|
||||
'content' => ' ',
|
||||
'line' => 15,
|
||||
'position' => 39,
|
||||
)),
|
||||
)),
|
||||
3 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 15,
|
||||
'position' => 40,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'you would use:',
|
||||
'line' => 15,
|
||||
'position' => 40,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 15,
|
||||
'position' => 54,
|
||||
)),
|
||||
)),
|
||||
4 =>
|
||||
ezcDocumentBBCodeLiteralBlockNode::__set_state(array(
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => '
|
||||
Some code
|
||||
maintaining
|
||||
spaces
|
||||
',
|
||||
'line' => 17,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
5 =>
|
||||
ezcDocumentBBCodeParagraphNode::__set_state(array(
|
||||
'line' => 23,
|
||||
'position' => 59,
|
||||
'nodes' =>
|
||||
array (
|
||||
0 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 23,
|
||||
'position' => 1,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => 'This was a literal block, while this is an ',
|
||||
'line' => 23,
|
||||
'position' => 1,
|
||||
)),
|
||||
)),
|
||||
1 =>
|
||||
ezcDocumentBBCodeInlineLiteralNode::__set_state(array(
|
||||
'line' => 23,
|
||||
'position' => 44,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeLiteralBlockToken::__set_state(array(
|
||||
'content' => 'inline literal',
|
||||
'line' => 23,
|
||||
'position' => 44,
|
||||
)),
|
||||
)),
|
||||
2 =>
|
||||
ezcDocumentBBCodeTextNode::__set_state(array(
|
||||
'line' => 23,
|
||||
'position' => 58,
|
||||
'nodes' =>
|
||||
array (
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeTextLineToken::__set_state(array(
|
||||
'content' => '.',
|
||||
'line' => 23,
|
||||
'position' => 58,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeNewLineToken::__set_state(array(
|
||||
'content' => '
|
||||
',
|
||||
'line' => 23,
|
||||
'position' => 59,
|
||||
)),
|
||||
)),
|
||||
),
|
||||
'token' =>
|
||||
ezcDocumentBBCodeEndOfFileToken::__set_state(array(
|
||||
'content' => NULL,
|
||||
'line' => 25,
|
||||
'position' => 1,
|
||||
)),
|
||||
));
|
||||
|
24
vendor/zetacomponents/document/tests/files/bbcode/parser/s_014_full_example.txt
vendored
Normal file
24
vendor/zetacomponents/document/tests/files/bbcode/parser/s_014_full_example.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
Full BBCode example
|
||||
|
||||
For example using stacked lists:
|
||||
|
||||
[list=1]
|
||||
[*]Go to the shops
|
||||
[*]
|
||||
[list]
|
||||
[*] This is second level list item
|
||||
[*] This is another one
|
||||
[/list]
|
||||
[*]Swear at [b]computer [i]when[/i][/b] it crashes
|
||||
[/list]
|
||||
|
||||
Whereas for an [url=http://example.com]alphabetical list[/url] you would use:
|
||||
|
||||
[code]
|
||||
Some code
|
||||
maintaining
|
||||
spaces
|
||||
[/code]
|
||||
|
||||
This was a literal block, while this is an [code]inline literal[/code].
|
||||
|
Reference in New Issue
Block a user