Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

indenting html code

I have an html file (size about 260kb) whose source code is not formatted. i.e., all the tags and all the code of the html file are on one single line. So, on opening it in gedit(or notepad) its impossible to understand its contents. Is is possible to somehow indent it according to tags so that all tags come on different lines and the html code becomes comprehendible. Please help.

like image 519
ghostCoder Avatar asked Jul 21 '26 22:07

ghostCoder


2 Answers

You mean aside from tabbing yourself? Try HTML Tidy Online - it has an automatic indentation function.

like image 171
m.edmondson Avatar answered Jul 23 '26 12:07

m.edmondson


Try out purehtml.in. It takes care of indenting for HTML tags, including content within script and style tags.

like image 39
Roy Avatar answered Jul 23 '26 11:07

Roy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!