Okay, I got to it quite a bit earlier…
Tweak this to your liking:
[pre=#2D2D2D] {
“name”: “php_keywords”,
“open”: “^\s*(if|foreach|while.+:$)”,
“close”: “^\s*(endif|endforeach|endwhile;$)”,
“icon”: “dot”,
“color”: “brackethighlighter.tag”,
“style”: “underline”,
“language_filter”: “whitelist”,
“scope_exclude”: “string”, “comment”],
“language_list”: “HTML”, “HTML 5”, “XML”, “PHP”, “HTML+CFML”, “ColdFusion”, “ColdFusionCFC”],
“plugin_library”: “User.phpkeywords”,
“enabled”: true
},[/pre]
Here is the awesome sauce…save as User/phpkeywords.py
[pre=#2D2D2D]def compare(name, first, second, bfr):
return “end” + bfrfirst.begin:first.end] == bfrsecond.begin:second.end][/pre]
Not so bad eh?