mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 22:53:44 +08:00
7 lines
448 B
JavaScript
7 lines
448 B
JavaScript
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})]}]})})()); |