COOL!
CSS Select ( WebDevelopment Package)
That is utterly bionic.
I have a feature suggestion; if the cursor is inside a javascript string, use that as the css selector. So you can imagine code like this;
<script type="text/javascript>
// jQuery call to display the #my-dialog div as a dialog box.
$("#my-dialog").dialog('open');
</script>
So if you put your cursor into the string (’#my-dialog’) and press a key, it’ll select the div for your dialog.
This is a very nice way for people to jump from the javascript that manipulates DOM elements straight to the elements themselves.
Amazing… can’t wait to try it out
When parsing with lxml, how do you get the actual text-file position of an element (i.e. the sublime Region)?
does it have any special dependencies?
ImportError: No module named lxml
Reloading plugin C:\...\Sublime Text\Packages\webdevelopment/tidyhtml.py
Traceback (most recent call last):
File ".\sublimeplugin.py", line 39, in reloadPlugin
File ".\tidyhtml.py", line 15, in <module>
from indentation import normed_indentation_pt, handle_tabs
ImportError: No module named indentation
Reloading plugin C:\...\Sublime Text\Packages\webdevelopment/tidyhtml.py
Traceback (most recent call last):
File ".\sublimeplugin.py", line 39, in reloadPlugin
File ".\tidyhtml.py", line 15, in <module>
from indentation import normed_indentation_pt, handle_tabs
ImportError: No module named indentation
Unknown external include source.smarty included from text.html.basic
Unknown external include source.applescript included from source.shell
[quote=“sublimator”]Ohk as EJ12N just pointed out, I’m a space cadet and haven’t been pushing the latest changes. Mostly because I need to rewrite a lot of this. The developer of lxml has given me some tips to speed it up a lot. So if you use this, or want to before The Great Rewrite
don’t come bitching to me that my updates broke your configs or I changed commands etc If it blows anything up and you lose your work: TOUGH. Don’t download strange source
In any case, I just pushed the latest changes. I’d recommend getting the version of AAALoadFirstExtensions from bitbucket if you plan to have a play.
I’m sleepy. Over.[/quote]
Thanks plugin is awesome
I thought I saw somewhere screencast, which shows this technique with the CSS file. Was it?
Sublimator, is it possible to eventually make the possibility to use character entities? For example, I only use the character entities, and I have all the projects is teeming with such.
I’ll wait for that. http://forums.disenteria.ru/style_emoticons/default/agree.gif
And again, thank you for this wonderful package! http://forums.disenteria.ru/style_emoticons/default/mol.gif
[quote=“sublimator”]Show xpath / highlight selections using latest beta onSelectionModified
(prototype – not on repo – yet)[/quote]
Sublimator, any news?
I understand. But if someday this feature will be done as it should, then I’ll be very glad http://forums.disenteria.ru/style_emoticons/default/agree.gif
I haven’t tried it with HTML but the highlighting part works pretty well with XML, without any lag:
[code]def node_highlight_cmd(key):
def wrapper(f):
def wrapped(self, view):
if view.options().getString(“syntax”) not in :
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
[/code]
Unfortunately it seems, that the files cant be loaded from bitbucket.org. Would it possible to load the files from another Source like github.com or that you update to a free, unlimited Community Account here bitbucket.org/plans