HTML Headers Tools Extension for Visual Studio CodeThis is a Visual Studio Code extension for HTML file, it contains tools related to headers (h2-h6). OverviewConcept related to this extension is based on that page can only have one H1 header and all other headers must respect hierarchical structure (ie: H2, followed by H3, etc. never pass from H2 to H4). List of actual tools:
How to useValidationThe validation can be made from a selection or the whole editor's content. If text is selected, the extension will validate the hierarchical structure in the selection only. Set/Reset IDsThe set/reset can be made from a selection or the whole editor's content. The extension will:
Create list for Table of contentsThe create ToC list is inserted where the cursur is present, so it's important to place the cursor at the right place before to execute the script. The list will include ALL headers that have ID set. So, if in the code, some headers with ID not have to be present in the list, they must be removed manually. Configuration instructions
Known bugsSee the Changelog.md to get more information. |