简介和流程
最近换到sublime text3每次copy 代码或者相关文本的时候都只是plain text,并没有格式啊背景色等 也就是所谓的 rich text:富文本,简写RTF.
基本思路:
1.command + shift + P 打开 Package Control
2.输入add Repository
3.在下方输入https://github.com/n1k0/SublimeHighlight/tree/python3 导入模块,看提示加载成功后再继续,没成功就再加载
4.等文本栏再次弹出来后输入 SublimeHighlight,点击就算安装成功了
6.然后修改配置文件以及hotkeys
- 修改setting-user配置文件为(位置见后面截图)
其中theme你可以按照喜好修改:
点我显示可选theme外观展示
{
"theme": "fruity",
"noclasses": true,
"fontface": "Menlo",
}
- 修改key-binding(位置参见后面截图)
[
{ "keys": ["shift+command+c"],
"command": "sublime_highlight",
"args": { "target": "clipboard",
"output_type": "rtf"
}
},
]
流程如下:
1.加载sublimehightlight模块
image
2.进口安装模块模式
image
3.输入sublimehighlight安装模块
image
4.修改user配置文件
image
image
5.修改快捷键为 shift + command + c
image
image
6.选择 copy as rtf
image
7. word下粘贴后的结果,在outlook以及其他地方都会显示有格式的文本
image