使用 Sublime Text 3 编辑 Markdown、浏览器实时预览

Sublime Text 3

https://www.sublimetext.com/

Preferences --> Settings

File Path: C:\Users\wuyong\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settings

{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
    "translate_tabs_to_spaces": true,
    "highlight_line": true,
    "ensure_newline_at_eof_on_save": true,
    "save_on_focus_lost": true,
    "ignored_packages":
    [
        "Vintage"
    ]
}

Preferences --> Keybindings

File Path: C:\Users\wuyong\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap

[
    { "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} },
]

Package Control

Package Control is the Sublime Text package manager. It includes a list of over 2,500 packages available for install, and users can add any GitHub or BitBucket repository themselves. Once installed, packages are kept up-to-date automatically.

https://packagecontrol.io/

https://packagecontrol.io/installation

Markdown​Preview

Preview and build your markdown files quickly in your web browser using Sublime Text 3.

You can use the builtin Python Markdown parser (offline) or use the GitHub Markdown API or GitLab Markdown API (online) for the conversion.

https://packagecontrol.io/packages/MarkdownPreview

https://facelessuser.github.io/MarkdownPreview/

File Path: C:\Users\wuyong\AppData\Roaming\Sublime Text 3\Packages\User\MarkdownPreview.sublime-settings

{
    "pygments_style": "vs"
}

Live​Reload

A web browser page reloading plugin for the Sublime Text 3 editor.

https://packagecontrol.io/packages/LiveReload

File Path: C:\Users\wuyong\AppData\Roaming\Sublime Text 3\Packages\User\LiveReload.sublime-settings

{
     "enabled_plugins": ["SimpleReloadPlugin"]
}

Chrome 扩展 Live​Reload

http://livereload.com/extensions/

https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei

演示

alt+m

Sublime Text 3 常用插件和主题

Convert​To​UTF8

Emmet

jQuery

Terminal

Theme - Legacy

Theme - Monokai Pro

Theme - Soda

Trailing​Spaces

Word​Highlight

https://packagecontrol.io/browse/authors/SublimeText

Markdown 语法指南

https://commonmark.org/help/

posted @ 2021-04-03 13:36  clipboard  阅读(313)  评论(0编辑  收藏  举报