def on_activated_async(self, view):
vsettings = view.settings()
if (is_markdown_view(view) and get_settings().get(ON_OPEN)
and not vsettings.get(PREVIEW_ENABLED)
and vsettings.get('syntax') != 'Packages/MarkdownLivePreview/' + \
'.sublime/MarkdownLivePreviewSyntax' + \
'.hidden-tmLanguage'
and not any(filter(lambda window: window.settings().get(PREVIEW_WINDOW) is True,
sublime.windows()))):
sublime.run_command('new_markdown_live_preview')
MarkdownLivePreview.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录