<Keyword><?</Keyword><br/>
<Comment>/* This is a pseudo PHP file to test Kate's PHP syntax highlighting. */</Comment><br/>
<Comment># </Comment><Alert Level 2>TODO</Alert Level 2><Comment>: this is incomplete, add more syntax examples!</Comment><br/>
<Comment># this is also a comment.</Comment><br/>
<Comment>// Even this is a comment</Comment><br/>
<Keyword>function</Keyword><PHP Text> test</PHP Text><Other>(</Other><Variable>$varname</Variable><Other>)</Other><PHP Text> </PHP Text><Normal Text>{</Normal Text><br/>
<PHP Text>	</PHP Text><Control Structures>return</Control Structures><PHP Text> </PHP Text><String>"bla"</String><Other>;</Other><PHP Text>	</PHP Text><Comment># this is also a comment</Comment><br/>
<Normal Text>}</Normal Text><br/>
<PHP Text></PHP Text><br/>
<Keyword>?></Keyword><br/>
<Normal Text></Normal Text><br/>
<Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><Other>(</Other><String>"hello test"</String><Other>);</Other><PHP Text> </PHP Text><Keyword>?></Keyword><br/>
<Normal Text></Normal Text><br/>
<Element><html></Element><br/>
<Normal Text>	</Normal Text><Keyword><?</Keyword><PHP Text> </PHP Text><Keyword>print</Keyword><PHP Text> </PHP Text><String>"<title>test</title>"</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><br/>
<Normal Text></Normal Text><br/>
<Normal Text>	</Normal Text><Comment><!-- CSS --></Comment><br/>
<Normal Text>	</Normal Text><Element><style></Element><br/>
<Normal Text>		</Normal Text><Selector Class>.inputText</Selector Class><Normal Text> {</Normal Text><br/>
<Normal Text>			</Normal Text><Property>width</Property><Normal Text>: </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><Variable>$width</Variable><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Normal Text>px</Normal Text><Separator Symbol>;</Separator Symbol><br/>
<Normal Text>			</Normal Text><Property>text-indent</Property><Normal Text>: </Normal Text><Number>10</Number><Unit>px</Unit><Separator Symbol>;</Separator Symbol><br/>
<Normal Text>		}</Normal Text><br/>
<Normal Text>	</Normal Text><Element></style></Element><br/>
<Normal Text></Normal Text><br/>
<Normal Text>	</Normal Text><Comment><!-- JavaScript --></Comment><br/>
<Normal Text>	</Normal Text><Element><script></Element><br/>
<Normal Text>		</Normal Text><Keyword>var</Keyword><Normal Text> some_js_var </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><Variable>$somevar</Variable><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Normal Text> </Normal Text><Symbol>;</Symbol><br/>
<Normal Text>		</Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><String>'alert("Hello there.");'</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><br/>
<Normal Text>	</Normal Text><Element></script></Element><br/>
<Normal Text>	</Normal Text><Comment><!-- JavaScript React --></Comment><br/>
<Normal Text>	</Normal Text><Element><script</Element><Attribute> type=</Attribute><Value>"text/babel"</Value><Element>></Element><br/>
<Normal Text>		</Normal Text><Component Tag><Hello></Component Tag><Tag Content Text> </Tag Content Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><Other>(</Other><String>"Hello, hello!"</String><Other>);</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Tag Content Text> </Tag Content Text><Component Tag></Hello></Component Tag><Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Comment>/* aaa */</Comment><PHP Text> </PHP Text><Keyword>?></Keyword><Normal Text> </Normal Text><Element Tag><div></div></Element Tag><br/>
<Normal Text>		</Normal Text><Keyword>function</Keyword><Normal Text> </Normal Text><Function Declaration>a</Function Declaration><Normal Text>(</Normal Text><Normal Text>i) </Normal Text><Normal Text>{</Normal Text><br/>
<Normal Text>			</Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><String>"var j = 1;"</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><br/>
<Normal Text>			</Normal Text><ControlFlow>return </ControlFlow><Element Tag><p></Element Tag><Code Brackets>{</Code Brackets><Normal Text> </Normal Text><Normal Text>i </Normal Text><Symbol>+</Symbol><Normal Text> </Normal Text><Normal Text>j </Normal Text><Code Brackets>}</Code Brackets><Element Tag></p></Element Tag><Symbol>;</Symbol><br/>
<Normal Text>		}</Normal Text><br/>
<Normal Text>	</Normal Text><Element></script></Element><br/>
<Normal Text>	</Normal Text><Comment><!-- TypeScript --></Comment><br/>
<Normal Text>	</Normal Text><Element><script</Element><Attribute> type=</Attribute><Value>"text/typescript"</Value><Element>></Element><br/>
<Normal Text>		</Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Variable>$timestamp</Variable><PHP Text> = </PHP Text><Function>time</Function><Other>();</Other><PHP Text> </PHP Text><Keyword>?></Keyword><br/>
<Normal Text>		</Normal Text><Reserved>class</Reserved><Normal Text> </Normal Text><Normal Text>DateTime </Normal Text><Normal Text>{</Normal Text><br/>
<Normal Text>			</Normal Text><Parameter>info</Parameter><Symbol>:</Symbol><Normal Text> </Normal Text><Types>string</Types><Symbol>;</Symbol><br/>
<Normal Text>			</Normal Text><Reserved>constructor</Reserved><Normal Text>() { </Normal Text><Keyword>this</Keyword><Symbol>.</Symbol><Object Member>info</Object Member><Normal Text> </Normal Text><Symbol>=</Symbol><Normal Text> </Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><Other>(</Other><Function>date</Function><Other>(</Other><String>"F d, Y h:i:s"</String><Other>,</Other><PHP Text> </PHP Text><Variable>$timestamp</Variable><Other>));</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Symbol>;</Symbol><Normal Text> }</Normal Text><br/>
<Normal Text>			</Normal Text><Reserved>get</Reserved><Normal Text>() { </Normal Text><ControlFlow>return</ControlFlow><Normal Text> </Normal Text><Keyword>this</Keyword><Symbol>.</Symbol><Object Member>info</Object Member><Symbol>;</Symbol><Normal Text> }</Normal Text><br/>
<Normal Text>		}</Normal Text><br/>
<Normal Text>	</Normal Text><Element></script></Element><br/>
<Normal Text>	</Normal Text><Comment><!-- MustacheJS --></Comment><br/>
<Normal Text>	</Normal Text><Element><script</Element><Attribute> type=</Attribute><Value>"x-tmpl-mustache"</Value><Element>></Element><br/>
<Normal Text>		</Normal Text><Comment>{{! </Comment><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>print</Keyword><PHP Text> </PHP Text><String>"comment"</String><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Comment> }}</Comment><br/>
<Normal Text>		</Normal Text><Mustache Block>{{#movie}}</Mustache Block><br/>
<Normal Text>			</Normal Text><Element Tag><div></Element Tag><br/>
<Normal Text>				</Normal Text><Element Tag><h1></Element Tag><Mustache Variable>{{</Mustache Variable><Mustache Inside>title</Mustache Inside><Mustache Variable>}}</Mustache Variable><Element Tag></h1></Element Tag><br/>
<Normal Text>				</Normal Text><Element Tag><img</Element Tag><Attribute> src</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Mustache Inside>poster</Mustache Inside><Mustache Variable>}}</Mustache Variable><Value>"</Value><Attribute> alt</Attribute><Symbol>=</Symbol><Value>"</Value><Mustache Variable>{{</Mustache Variable><Mustache Inside>title</Mustache Inside><Mustache Variable>}}</Mustache Variable><Value>"</Value><Element Tag>/></Element Tag><br/>
<Normal Text>				</Normal Text><Keyword><?php</Keyword><PHP Text> </PHP Text><Keyword>echo</Keyword><PHP Text> </PHP Text><Variable>$movierating</Variable><Other>;</Other><PHP Text> </PHP Text><Keyword>?></Keyword><Normal Text> - </Normal Text><Mustache Variable>{{</Mustache Variable><Mustache Inside>ratings</Mustache Inside><Symbol>.</Symbol><Mustache Inside>critics_rating</Mustache Inside><Mustache Variable>}}</Mustache Variable><br/>
<Normal Text>			</Normal Text><Element Tag></div></Element Tag><br/>
<Normal Text>		</Normal Text><Mustache Block>{{/movie}}</Mustache Block><br/>
<Normal Text>	</Normal Text><Element></script></Element><br/>
<Normal Text></Normal Text><br/>
<Element></html></Element><br/>
<Normal Text></Normal Text><br/>
<Keyword><?php</Keyword><br/>
<Variable>$var</Variable><PHP Text> = </PHP Text><Backslash Code><<<DOOH</Backslash Code><br/>
<String>This is the </String><Variable>$string</Variable><String> inside the variable (which seems to be rendered as a string)</String><br/>
<String>It works well, I think.</String><br/>
<Backslash Code>DOOH</Backslash Code><br/>
<PHP Text></PHP Text><br/>
<Comment># bug 382527</Comment><br/>
<Keyword>throw</Keyword><PHP Text> </PHP Text><Keyword>new</Keyword><PHP Text> ParserException</PHP Text><Other>(</Other><String>"Test </String><Variable>{$this->some_var[$index]}</Variable><Backslash Code>\n</Backslash Code><String>in </String><Variable>{$this->file}</Variable><String> is missing.</String><Backslash Code>\n</Backslash Code><String>This is bad."</String><Other>);</Other><br/>
<PHP Text></PHP Text><br/>
<Variable>$arr</Variable><PHP Text> = </PHP Text><Keyword>array</Keyword><Other>();</Other><br/>
<Control Structures>foreach</Control Structures><Other>(</Other><Variable>$arr</Variable><PHP Text> </PHP Text><Keyword>as</Keyword><PHP Text> </PHP Text><Variable>$i</Variable><PHP Text> => </PHP Text><Variable>$v</Variable><Other>)</Other><Normal Text>:</Normal Text><br/>
<PHP Text>	</PHP Text><Keyword>echo</Keyword><Other>(</Other><Variable>$i</Variable><Other>);</Other><br/>
<Control Structures>endforeach</Control Structures><br/>
<Keyword>?></Keyword><br/>
