Hey,
I just had an idea that I think would be nice. It’s an xml Parser inside Sublime Text.
For example, say you want to add a label to all of your inputs in HTML. You would write something like this:
inputs=document.getElementsByTagName('input')
for input in inputs:
id=input.getAttribute('id')
label=document.createElement('label').setAttribute('for',id)
input.before(label)
Is they already support for something like that in Sublime Text, or are they some plugins that extend sublime this way ?
If not, how is it possible to do so ? I never created a plugin and am asking if you can add variables like that accessible from the sublime console.
Thanks in advance!