MarkdownLivePreview.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:MarkdownLivePreview 作者: math2001 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号