📄 php-f.js
字号:
} else { return this.x( all, '/php' ); } } } } , block: { php_1: { // --- <? +++ ?> --- _match: /(<\?(?:php\b)?)([^?]*\?+(?:[^>][^?]*\?+)*>)/ , _replace: function( all, open, content ) { return "<span class='start'>" + this.x( open ) + "</span>" + this.x( content.replace( /\?>$/, '' ), '/php' ) + "<span class='end'>" + this.x( '?>' ) + "</span>"; } , _style: { start: "color: red; font-weight: bold" , end: "color: red;" } } , php_2: { // +++ ?> --- <? +++ _match: /([^?]*\?+(?:[^>][^?]*\?+)*>)|(<\?(?:php\b)?)([\w\W]*)/ , _replace: function( all, content, open2, content2 ) { if( open2 ) { return "<span class='start'>" + this.x( open2 ) + "</span>" + this.x( content2, '/php' ); } else { return this.x( content.replace( /\?>$/, '' ), '/php' ) + "<span class='end'>" + this.x( '?>' ) + "</span>"; } } , _style: { start: "color: red; font-weight: bold" , end: "color: red;" } } } , php: { mlcom: { _match: /\/\*[^*]*\*+([^\/][^*]*\*+)*\// , _style: "color: gray;" } , com: { _match: /(?:\/\/.*)|(?:[^\\]\#.*)/ , _style: "color: green;" } , string1: {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -