Sublime配置Evernote

配置步骤


写在前面

所需安装的插件:
* Package Control
* Evernote
* SublimeTmpl
* Markdown Extended
* Markdown Preview
* Monokai Extended(Markdown的语法配色方案)

Evernote插件(安装略)

配置

Preferences--->Package Setting--->Evernote--->Setting-User

下面为我的配置:

{
  "noteStoreUrl": "http://app.yinxiang.com/shard/s4/notestore",
  "token": "S=s4:U=10a74f:E=15dff113e55:C=156a7601090:P=1cd:A=en-devtoken:V=2:H=d57b1e8b5e8015db1655f0df5dd7951e",
  "inline_css": {
        "pre": "color: #000000; font-family: mononoki,YaHei Consolas Hybrid,Menlo, Monaco, Consolas, Courier New, monospace; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; background-color: #f8f8f8; border: 1px solid #cccccc; border-radius: 3px; overflow: auto; padding: 6px 10px; margin-bottom: 10px;",
        "code": "color: black; font-family: mononoki,YaHei Consolas Hybrid,Menlo, Monaco, Consolas, Courier New, monospace; font-size: 14px;"

    },
    "code_highlighting_style": "github"
}

注释:

  • 国内用户,点击获得noteStoreUrl和token参数.
  • inline_css为字体样式设置,code_highlighting_style为代码高亮语法key值.

SublimeTmpl插件(安装略)

配置
浏览程序包--->SublimeTmpl--->templates--->新建md.tmpl 写入如下代码:

--- 
title: 2016.2.3 //标题
tags: 日记 //标签
notebook: 00.日清单/总结 //笔记本
---

Key绑定与设置

Preferences--->按键绑定-用户 写入如下代码:

[
    { "keys": ["ctrl+shift+e"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Evernote: "} },
    { "keys": ["ctrl+e", "ctrl+s"], "command": "send_to_evernote" },
    { "keys": ["ctrl+e", "ctrl+o"], "command": "open_evernote_note" },
    { "keys": ["ctrl+e", "ctrl+n"], "command": "new_evernote_note" },
    { "keys": ["ctrl+s"], "command": "save_evernote_note", "context": [{"key": "evernote_note"}] },
    { "keys": ["ctrl+s"], "command": "send_to_evernote", "context": [{"key": "evernote_note", "operator": "equal", "operand": false}, {"key": "selector", "operator": "equal", "operand": "text.html.markdown.evernote"}] }

]

注释:

  • "ctrl+shift+e"调出Evernote菜单
  • "ctrl+e, ctrl+s"先按"ctrl+e"获取与Evernote连接,然后"ctrl+s"保存


使用流程


此处以创建一个新的笔记为例

  • "ctrl+shift+e"调出菜单
  • 选择"new empty note创建新的笔记 -- 或者"ctrl+e,ctrl+n"直接创建新的笔记
  • 调出Command选择Markdown Extended语法
  • Preferences--->配色方案--->Monokai选择一种配色方案
  • 调出Command选择Markdown Preview预览
  • "ctrl+s"保存Evernote笔记

你可能感兴趣的:(IDE)