编辑:mode-ai-php.js
ace.define ('ace/mode/ai-php', function (require, exports, module) { var oop = require ("ace/lib/oop"); var PhpMode = require ("ace/mode/php").Mode; var AiPhpHighlightRules = require ("ace/mode/ai_php_highlight_rules").AiPhpHighlightRules; var Mode = function() { this.HighlightRules = AiPhpHighlightRules; }; oop.inherits (Mode, PhpMode); (function() {}).call(Mode.prototype); exports.Mode = Mode; }); ace.define ('ace/mode/ai_php_highlight_rules', function (require, exports, module) { var oop = require("ace/lib/oop"); var PhpHighlightRules = require ("ace/mode/php_highlight_rules").PhpHighlightRules; var AiPhpHighlightRules = function() { this.$rules = new PhpHighlightRules().getRules(); this.$lang = require ("ace/lib/lang"); add_ai_highlighting_rules (this, PhpHighlightRules); } oop.inherits (AiPhpHighlightRules, PhpHighlightRules); exports.AiPhpHighlightRules = AiPhpHighlightRules; }); function add_ai_highlighting_rules (highlighter, highlight_rules) { highlighter.$ai_shortcodes = highlighter.$lang.arrayToMap ("adinserter".split ("|")); highlighter.$ai_separators1 = highlighter.$lang.arrayToMap ("http|count|check".split ("|")); highlighter.$ai_separators2 = highlighter.$lang.arrayToMap ("head|amp".split ("|")); highlighter.$ai_separators3 = highlighter.$lang.arrayToMap ("rotate|index".split ("|")); highlighter.$ai_separators4 = highlighter.$lang.arrayToMap ("fallback".split ("|")); highlighter.$ai_attributes = highlighter.$lang.arrayToMap ("block|code|name|group|global-custom-field|ignore|viewport|debugger|adb|tracking|css|text|selectors|custom-field|random|data|share|time|counter|categories|category|tags|tag|taxonomies|taxonomy|ids|id|urls|url|url-parameters|url-parameter|referrers|referrer|clients|client|scheduling|ip-addresses|ip-address|countries|country|cookies|cookie|disable".split ("|")); //WP shortcodes highlighter.$rules ['start'].unshift ( { token: function (shortcode_start, shortcode, shortcode_end) { highlighter.$ai_shortcode = highlighter.$ai_shortcodes.hasOwnProperty (shortcode.toLowerCase()); return ["paren", highlighter.$ai_shortcode ? "shortcode.adinserter" : "shortcode"]; }, regex: "(\\[/?)([a-zA-Z][a-zA-Z0-9_-]*)", next: "ai-attributes" }, { token: "variable.language", regex: "\\|rotate\\||\\|count\\||\\|amp\\|", } ); highlighter.embedRules (highlight_rules, "ai-", [ { token: "paren", regex: "\\]", next: "start" } ]); //AI {#data:#} highlighter.$rules ['start'].unshift ( { token: ["paren", "data", "paren", "string", "paren"], regex: "(\\{\\#)([a-zA-Z][a-zA-Z0-9_-]*)(\\:)?(.*)?(\\#\\})", }, ); // Add ] to regexp for 'string.unquoted.attribute-value.html' var arrayLength = highlighter.$rules ['ai-keyword.operator.attribute-equals.xml'].length; for (var i = 0; i < arrayLength; i++) { if (highlighter.$rules ['ai-keyword.operator.attribute-equals.xml'][i]['token'] == 'string.unquoted.attribute-value.html') highlighter.$rules ['ai-keyword.operator.attribute-equals.xml'][i]['regex'] = "[^<>='\"`\\]\\s]+"; } highlighter.$rules ['ai-attributes'].unshift ( { token: function (attribute) { return !highlighter.$ai_shortcode ? "entity.other.attribute-name.xml" : highlighter.$ai_separators1.hasOwnProperty (attribute.toLowerCase()) ? "string" : highlighter.$ai_separators2.hasOwnProperty (attribute.toLowerCase()) ? "identifier" : highlighter.$ai_separators3.hasOwnProperty (attribute.toLowerCase()) ? "variable.language" : highlighter.$ai_separators4.hasOwnProperty (attribute.toLowerCase()) ? "support.php_tag" : // highlighter.$ai_separators5.hasOwnProperty (attribute.toLowerCase()) ? "data" : // highlighter.$ai_separators6.hasOwnProperty (attribute.toLowerCase()) ? "paren" : // highlighter.$ai_separators7.hasOwnProperty (attribute.toLowerCase()) ? "keyword" : highlighter.$ai_attributes.hasOwnProperty (attribute.toLowerCase()) ? "entity.other.attribute-name.xml" : "text"; }, regex: "[a-zA-Z][-a-zA-Z0-9]*" } ); // console.log (highlighter.$rules); }
保存文件
位置:
home
/
fembzvrs
/
zimeza.com
/
wp-content
/
plugins
/
ad-inserter
/
includes
/
ace
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
LICENSE
-rw-r--r--
1.46 KB
2019-05-08 22:45
编辑
下载
权限
删除
重命名
Readme.md
-rw-r--r--
6.51 KB
2019-05-08 22:45
编辑
下载
权限
删除
重命名
ace.js
-rw-r--r--
330.47 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-beautify.js
-rw-r--r--
3.73 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-chromevox.js
-rw-r--r--
6.27 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-elastic_tabstops_lite.js
-rw-r--r--
3.77 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-emmet.js
-rw-r--r--
20.38 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-error_marker.js
-rw-r--r--
140 B
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-language_tools.js
-rw-r--r--
33.18 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-modelist.js
-rw-r--r--
3.2 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-old_ie.js
-rw-r--r--
11.55 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-searchbox.js
-rw-r--r--
9.68 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-spellcheck.js
-rw-r--r--
1.41 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-statusbar.js
-rw-r--r--
1.02 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-textarea.js
-rw-r--r--
10.46 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-themelist.js
-rw-r--r--
1.22 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
ext-whitespace.js
-rw-r--r--
2.45 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
keybinding-emacs.js
-rw-r--r--
23.98 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
mode-ai-html.js
-rw-r--r--
4.37 KB
2026-05-04 22:28
编辑
下载
权限
删除
重命名
mode-ai-php.js
-rw-r--r--
4.44 KB
2026-05-04 22:28
编辑
下载
权限
删除
重命名
theme-ad_inserter.js
-rw-r--r--
3.74 KB
2019-09-22 14:14
编辑
下载
权限
删除
重命名
theme-ambiance.js
-rw-r--r--
27.13 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-chaos.js
-rw-r--r--
2.78 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-chrome.js
-rw-r--r--
2.65 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-cobalt.js
-rw-r--r--
2.32 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-crimson_editor.js
-rw-r--r--
2.75 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-dawn.js
-rw-r--r--
2.21 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-disabled.js
-rw-r--r--
1.27 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-dreamweaver.js
-rw-r--r--
3.06 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-github.js
-rw-r--r--
2.01 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-idle_fingers.js
-rw-r--r--
2.21 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-katzenmilch.js
-rw-r--r--
3.01 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-kuroir.js
-rw-r--r--
1.98 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-merbivore.js
-rw-r--r--
2.2 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-merbivore_soft.js
-rw-r--r--
2.41 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-mono_industrial.js
-rw-r--r--
2.74 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-monokai.js
-rw-r--r--
2.34 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-pastel_on_dark.js
-rw-r--r--
2.59 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-solarized_dark.js
-rw-r--r--
2.28 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-terminal.js
-rw-r--r--
2.86 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-tomorrow.js
-rw-r--r--
2.51 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-tomorrow_night.js
-rw-r--r--
2.77 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-tomorrow_night_blue.js
-rw-r--r--
2.98 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-tomorrow_night_bright.js
-rw-r--r--
3.43 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-tomorrow_night_eighties.js
-rw-r--r--
3.16 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-twilight.js
-rw-r--r--
2.46 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-vibrant_ink.js
-rw-r--r--
2.17 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名
theme-xcode.js
-rw-r--r--
1.89 KB
2017-04-27 22:02
编辑
下载
权限
删除
重命名