mirror of
https://github.com/alecthomas/chroma.git
synced 2025-04-07 07:09:52 +02:00
73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
[
|
|
{"type":"CommentPreproc","value":"\u003c?php"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"NameVariable","value":"$docs"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$modx"},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":""},
|
|
{"type":"NameAttribute","value":"getIterator"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringSingle","value":"'modResource'"},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"["},
|
|
{"type":"LiteralStringDouble","value":"\"parent\""},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"=\u003e"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralNumberInteger","value":"84"},
|
|
{"type":"Punctuation","value":"]);"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"Keyword","value":"foreach"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$docs"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"as"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$doc"},
|
|
{"type":"Punctuation","value":"){"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$q"},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"NameVariable","value":"$doc"},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":""},
|
|
{"type":"NameAttribute","value":"content"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameVariable","value":"$doc"},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":""},
|
|
{"type":"NameAttribute","value":"set"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringDouble","value":"\"content\""},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameOther","value":"preg_replace"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"LiteralStringDouble","value":"\"/Some value/i\""},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralStringDouble","value":"\"Replacement\""},
|
|
{"type":"Punctuation","value":","},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameVariable","value":"$q"},
|
|
{"type":"Punctuation","value":"));"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameOther","value":"print_r"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameVariable","value":"$doc"},
|
|
{"type":"Operator","value":"-\u003e"},
|
|
{"type":"Text","value":""},
|
|
{"type":"NameAttribute","value":"content"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"CommentSingle","value":"// $doc-\u003esave();\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":" \n"},
|
|
{"type":"CommentSingle","value":"// some comment\n"}
|
|
]
|