Sublime 安装Boxy + OmniMarkupPreviewer
Package Install 安装
网络安装
ctrl+反引号
打开控制台,在控制台中输入代码
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.NET/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Package 文件安装
preference->Browse Package
,然后进入上一个目录,进入Installed Package
中
从https://sublime.wbond.Net/Package%20Control.sublime-package
下载文件,然后放入上面的目录中
安装插件
输入ctrl+shift+p
后输入install
,等待网络接通,输入要安装的插件
安装boxy
安装完会让你选择安装A File Icorn
github:https://github.com/ihodev/sublime-boxy
boxy配置文件
package setting boxy
{
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme",
"font_size": 16,
"theme": "Boxy Tomorrow.sublime-theme",
"theme_accent_blue": true,
"theme_autocomplete_item_selected_colored": true,
"theme_bar": true,
"theme_bar_colored": true,
"theme_dirty_accent_blue": true,
"theme_find_panel_font_md": true,
"theme_find_panel_materialized": true,
"theme_find_panel_padding_md": true,
"theme_find_panel_size_md": true,
"theme_font_lg": true,
"theme_grid_border_size_md": true,
"theme_icons_materialized": true,
"theme_popup_border_visible": true,
"theme_quick_panel_border_visible": true,
"theme_quick_panel_item_selected_colored": true,
"theme_scrollbar_colored": true,
"theme_scrollbar_line": true,
"theme_sidebar_disclosure": true,
"theme_sidebar_folder_materialized": true,
"theme_sidebar_font_xl": true,
"theme_sidebar_heading_bold": true,
"theme_sidebar_highlight_text_only": true,
"theme_sidebar_indent_xl": true,
"theme_sidebar_size_xl": true,
"theme_size_xl": true,
"theme_tab_selected_overlined": true,
"theme_tab_size_lg": true,
"theme_tab_size_md": true,
"theme_unified": true
}
安装OminiMarkPreview
预览快捷键ctrl+alt+o
修改host中的server_host
,就可以用其他的设备查看
如http://127.0.0.1:51004/view/87
这是在本地查看,端口是51004,页可以自己修改
配置文件
ominipreview settings
{
"server_host": "127.0.0.1",
// "server_host": "192.168.11.59",
// "server_host": "192.168.43.69",
"browser_command": [],
// "browser_command": ["open", "-a", "Google Chrome", "{url}"],
// User public static files should be placed into // ${packages}/User/OmniMarkupPreviewer/public/
// User templates should be placed into:
// ${packages}/User/OmniMarkupPreviewer/templates/
// Requires browser reload
// "html_template_name": "Evolution Yellow",
// list of renderers to be ignored, case sensitive. // Valid renderers are: "CreoleRenderer", "MarkdownRenderer", "PodRenderer",
// "RDocRenderer", "RstRenderer", "TextitleRenderer"
// for example, to disable Textile and Pod renderer:
// "ignored_renderers": ["TextitleRenderer", "PodRenderer"]
"ignored_renderers": ["CreoleRenderer", "PodRenderer", "RDocRenderer", "TextitleRenderer", "LiterateHaskellRenderer"],
"mathjax_enabled": false,
// MarkdownRenderer options
"renderer_options-MarkdownRenderer": {
// Valid extensions:
// - OFFICIAL (Python Markdown) -
// "extra": Combines ["abbr", "attr_list", "def_list", "fenced_code", "footnotes", "tables", "smart_strong"]
// For PHP Markdown Extra(http://michelf.ca/projects/php-markdown/extra/)
// "abbr": http://packages.python.org/Markdown/extensions/abbreviations.html
// "attr_list": http://packages.python.org/Markdown/extensions/attr_list.html
// "def_list": http://packages.python.org/Markdown/extensions/definition_lists.html
// "fenced_code": http://packages.python.org/Markdown/extensions/fenced_code_blocks.html
// "footnotes": http://packages.python.org/Markdown/extensions/footnotes.html
// "tables": http://packages.python.org/Markdown/extensions/tables.html
// "smart_strong": http://packages.python.org/Markdown/extensions/smart_strong.html
// "codehilite": http://packages.python.org/Markdown/extensions/code_hilite.html
// "meta": http://packages.python.org/Markdown/extensions/meta_data.html
// "toc": http://packages.python.org/Markdown/extensions/toc.html
// "nl2br": http://packages.python.org/Markdown/extensions/nl2br.html
// - 3RD PARTY -
// "strikeout": Strikeout extension syntax - `This ~~is deleted text.~~`
// "subscript": Subscript extension syntax - `This is water: H~2~O`
// "superscript": Superscript extension syntax 0 `2^10^ = 1024`
// "smarty" or "smartypants": Python-Markdown extension using smartypants to emit
// typographically nicer ("curly") quotes, proper
// ("em" and "en") dashes, etc.
// See: http://daringfireball.net/projects/smartypants/
// And: https://github.com/waylan/Python-Markdown/blob/master/docs/extensions/smarty.txt
// "extensions": ["extra", "codehilite", "toc", "strikeout", "smarty", "subscript", "superscript"],
"extensions": ["tables", "fenced_code", "codehilite"]
}
}