Hello, can sublime text notify you, if you are using an ID more than once? aka. “id redefinition”
<div id=“test”></div>
<div id=“test”></div>
Hello, can sublime text notify you, if you are using an ID more than once? aka. “id redefinition”
<div id=“test”></div>
<div id=“test”></div>
Assuming that you are working with well-formed XHTML, you could manually check using the XPath plugin.
XPath: Query
and select XPath: Query Document
//*[@id and (@id=./preceding::*/@id or @id=./following::*/@id)]
0 results from query
Thanks I’ll give that a try. However I was hoping to find a more automated solution. The sublime-linter plugins looked promising, but didn’t appear to check for duplicate ID’s .
I have been trying to make the switch from Dreamweaver to Sublime. It’s going alright, but live error reporting was something I relied on heavily in Dreamweaver.