搜索并更改文本背景颜色
搜索目标文本并更改其背景颜色。
插件类型: 可视化,非系统插件。
支持的编辑器: 文本文档。
安装
从 GitHub 下载此插件,并按照以下说明进行安装:桌面版、本地部署版 或云端版。
使用方法
- 打开插件选项卡并点击示例:搜索并更改背景文本颜色。
- 在输入框中输入需要查找的文本。
- 在颜色块中选择所需颜色。
- 点击更改颜色按钮更改选中文本的背景颜色。
- 点击更改全部颜色按钮更改所有匹配文本的背景颜色。
- 点击重置按钮重置选中文本的背景颜色。
插件结构
GitHub 仓库:example_search_and_change_text_background_color。
- config.json、index.html 和 code.js
- 图标
配置
{
"name": "Example search and change background text",
"guid": "asc.{EF5735E0-69A7-4D4A-9ABE-F58FD70F488J}",
"variations": [
{
"description": "Example search and change background text",
"url": "index.html",
"icons": ["resources/light/icon.png", "resources/light/icon@2x.png"],
"icons2": [
{
"style": "light",
"100%": {
"normal": "resources/light/icon.png"
},
"125%": {
"normal": "resources/light/icon@1.25x.png"
},
"150%": {
"normal": "resources/light/icon@1.5x.png"
},
"175%": {
"normal": "resources/light/icon@1.75x.png"
},
"200%": {
"normal": "resources/light/icon@2x.png"
}
},
{
"style": "dark",
"100%": {
"normal": "resources/dark/icon.png"
},
"125%": {
"normal": "resources/dark/icon@1.25x.png"
},
"150%": {
"normal": "resources/dark/icon@1.5x.png"
},
"175%": {
"normal": "resources/dark/icon@1.75x.png"
},
"200%": {
"normal": "resources/dark/icon@2x.png"
}
}
],
"isViewer": false,
"EditorsSupport": ["word"],
"isVisual": true,
"isModal": false,
"isInsideMode": true,
"initDataType": "none",
"initData": "",
"buttons": []
}
]
}
方法和事件
- button
- init
- callCommand
- Asc.scope object
支持
如需请求功能或报告此插件的问题,请通过 GitHub Issues 页面提交。