Code: Select all
[tab]<header id="masthead" class="site-header">
[tab][tab]<h1>
[tab][tab][tab]<h2>
[tab][tab][tab][tab]<h3>
[tab][tab][tab][tab][tab]<h4>;
Then convert each [tab] into 2 spaces [**]
Code: Select all
<header id="masthead" class="site-header">
**<h1>
****<h2>
******<h3>
********<h4>;
1. Copy code to clipboard
2. Press an autohotkey
3. Paste the newly formatted contents
Pseudocode would look like
- Dig through every clipboard content line by line
- If every item shares an equal number of [tab] spaces, remove them entirely
- Line by line, convert [tab] to [**] 2 spaces