Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- ...
- <div><?php echo "content"; ?></div>
- ...
- </html>
- <Language name="html" ext="html htm shtml shtm xhtml hta"
- <Language name="html" ext="html htm shtml shtm xhtml hta php"
- <Language name="php" ext="php php3 phtml"
- <Language name="php" ext="php1 php3 phtml"
- <association langID="6" id="java"/>
- <association langID="9" id="xml_node"/>
- <association langID="6" id="java"/>
- <association langID="8" id="html_function"/>
- <association langID="9" id="xml_node"/>
- <parser id="html_function" displayName="PHP" commentExpr="((/*.*?*)/|(//.*?$))">
- <classRange
- mainExpr="^[s]*(class|abstract[s]+class|final[s]+class)[t ]+[w]+([s]*|[s]*(extends|implements)[s]+[w\]+[s]*)?{"
- openSymbole = "{"
- closeSymbole = "}"
- displayMode="node">
- <className>
- <nameExpr expr="(class|abstract[s]+class|final[s]+class)[s]+[w]+"/>
- <nameExpr expr="[s]+[w]+Z"/>
- <nameExpr expr="[w]+Z"/>
- </className>
- <function
- mainExpr="^[s]*((static|public|protected|private|final)*(s+(static|public|protected|private|final))+[s]+)?(function[s]+)+([w]+([s]+[w]+)?([s]+|*[s]+|[s]+*|[s]+*[s]+))?([w_]+[s]*::)?(?!(if|while|for|switch))[w_~]+[s]*([^{]*{">
- <functionName>
- <funcNameExpr expr="(?!(if|while|for|switch))[w_]+[s]*([^{]*"/>
- <!-- comment below node if want display method with parmas -->
- <funcNameExpr expr="(?!(if|while|for|switch))[w_]+"/>
- </functionName>
- </function>
- </classRange>
- <function
- mainExpr="^[s]*function[s]+w+("
- displayMode="$className->$functionName">
- <functionName>
- <nameExpr expr="(?!(if|while|for))[w_]+[s]*("/>
- <nameExpr expr="(?!(if|while|for))[w_]+"/>
- </functionName>
- <className>
- <nameExpr expr="[w_]+(?=[s]*::)"/>
- </className>
- </function>
- </parser>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement