[quote=“agibsonsw”]You, or perhaps someone else, would need to bear in mind that attributes can be a single word (SELECTED) and may or may not have quotes or apostrophes. (Personally, I always include double-quotes
.)
Also, checks might need to be made that the user had selected a single word, and not included extra spaces, or the equal sign. Some attributes (data-*) are also hyphenated.
Given the above I won’t pursue this myself - if you are highlighting the attribute-name isn’t it just as easy to highlight the remaining text? - but someone else’s opinion may differ.
If it were extended so that first selecting, or clicking in, the tag-name would remove the whole tag (rather than just an attribute) then I can see that this would be more useful, that is, more flexible. Although, I think there might already be a plug-in that removes tags(?).[/quote]
Hi agibsonsw. Thank you for your response. I think this is more of like a personal plugin let say our CMS generates a pid=“12491824912” attribute in every element. If i’ll remove those pid attributes I can just press ctrl+alt+p. something like that.
by any chance, do you guys have a very easy sample for creating a plugin?
thanks again.
Imma try Emmet too
cool plugin