Hi all,
On this page, I don’t really understand the “Best Practises” section. I have a bunch of Phantom
s for my View
, and some Phantom
s are warnings, some are errors, some are remarks. If I style the Phantom
with, for example
point = get_from_somewhere()
region = sublime.Region(point, point)
message = '<body><div class="error">hello, world!</div></body>'
phantom = sublime.Phantom(region, message, sublime.LAYOUT_BELOW)
The Phantom turns up red, which is great. By experimentation, when the message is
message = '<body><div class="warning">hello, world!</div></body>'
the Phantom turns up yellow, which is also great. Now, why should I give the body a unique id
as in the “Best Practises” section? Next, why should I put a custom style block in the minihtml as in the “Best Practises” section? Finally, where are all the default div
classes that I can use?