美文网首页
sublime text3如何copy 富文本格式

sublime text3如何copy 富文本格式

作者: 周博 | 来源:发表于2020-02-16 22:28 被阅读0次

    简介和流程

    最近换到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

           { 
            "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

    相关文章

      网友评论

          本文标题:sublime text3如何copy 富文本格式

          本文链接:https://www.haomeiwen.com/subject/gwqvfhtx.html