sublimator wrote:The other alternative is to disable the parser from trying to resolve entities at all which what I plan to do eventually.
I'll wait for that.
And again, thank you for this wonderful package!
sublimator wrote:The other alternative is to disable the parser from trying to resolve entities at all which what I plan to do eventually.
sublimator wrote:Show xpath / highlight selections using latest beta onSelectionModified
(prototype -- not on repo -- yet)
sublimator wrote:It's not as much as a usability win as it is a gimick and it would be a lot of work to get it running smoothly where it doesn't annoy the crap out of you with lags.
def node_highlight_cmd(key):
def wrapper(f):
def wrapped(self, view):
if view.options().getString("syntax") not in [u"Packages/XML/XML.tmLanguage"]:
return
view.eraseRegions(key)
try:
nodes, proxy = selection_nodes(view)
if nodes:
view.addRegions(key, [r for r in f(self, view, nodes, proxy)], "comment")
except:
pass
return wrapped
return wrapper
class HighlightElementName(sublimeplugin.Plugin):
#@print_timing
@node_highlight_cmd("elementName")
def onSelectionModified(self, view, nodes, proxy):
for i, node in nodes:
for n in element_name_regions(view, node):
yield n
Return to Plugin Announcements
Users browsing this forum: No registered users and 6 guests