fast-diy
A small tool to quickly format Discuz! diy module(I hate it!).
Install from npm
$ npm install -g fast-diy
How to use
Add a diy
class name to each html tag which is going to be DIYed and run the fast-diy command:
$ fast-diy INPUT.html OUTPUT.html
Sample input:
test
Sample output:
<!--[diy=diy-f78e9de8]--> test <!--[/diy]-->
License
MIT