diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-03-18 00:23:57 -0700 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-03-18 00:23:57 -0700 |
commit | 3c10d209d706c286817e7150595113d9cda444bd (patch) | |
tree | 83f24325544855c64306c01f54cce31731b59f4a /static/hl/languages/php-template.min.js | |
parent | f8ae4d47bd7f3c0534822a78be8f0654195c4e1a (diff) |
Add highligh.js
Diffstat (limited to 'static/hl/languages/php-template.min.js')
-rw-r--r-- | static/hl/languages/php-template.min.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/static/hl/languages/php-template.min.js b/static/hl/languages/php-template.min.js new file mode 100644 index 0000000..c4e46e8 --- /dev/null +++ b/static/hl/languages/php-template.min.js @@ -0,0 +1,7 @@ +hljs.registerLanguage("php-template",(()=>{"use strict";return n=>({ +name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/, +subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"', +end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{ +illegal:null,className:null,contains:null,skip:!0 +}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null, +skip:!0})]}]})})());
\ No newline at end of file |