add demo;remove sublimetools
This commit is contained in:
@ -1,9 +1,19 @@
|
||||
import sublime
|
||||
import sublime_plugin
|
||||
from sublimetools import *
|
||||
import html
|
||||
from . import markdown2
|
||||
|
||||
# Main sublime tools function
|
||||
|
||||
def md(*t, **kwargs):
|
||||
sublime.message_dialog(kwargs.get('sep', '\n').join([str(el) for el in t]))
|
||||
|
||||
def sm(*t, **kwargs):
|
||||
sublime.status_message(kwargs.get('sep', ' ').join([str(el) for el in t]))
|
||||
|
||||
def em(*t, **kwargs):
|
||||
sublime.error_message(kwargs.get('sep', ' ').join([str(el) for el in t]))
|
||||
|
||||
class MarkdownInPopupCommand(sublime_plugin.EventListener):
|
||||
def run(self, view):
|
||||
view.show_popup('<h1> hello </h1>', sublime.HIDE_ON_MOUSE_MOVE_AWAY, 1)
|
||||
@ -32,7 +42,7 @@ class MarkdownInPopupCommand(sublime_plugin.EventListener):
|
||||
blockquote {
|
||||
font-style: italic;
|
||||
display: block;
|
||||
margin-left: 20px;
|
||||
margin-left: 30px;
|
||||
border: 1px solid red;
|
||||
}
|
||||
</style>"""
|
||||
|
||||
Reference in New Issue
Block a user