Ham Cutlet – Intelligent HTML Indentation

Category : Software

Ham Cutlet is  freeware written in Ruby/Sinatra. Its source code has been released to the public.

We often see some source code that isn’t indented perfectly. It is not so easy to read such stuff. Though it would never run if it was Python code, in other case, we might ignore the fact. We can’t stand it.

screen shot(2010-07-15 11.14.22).png
Such an awful source code would change to …


In case of some programming languagesprogrammers might even set indentation to somewhat bearable level. One problem is HTML source code. We sometimes encounter hellish source code. In that case, we should use Ham Cutlet.


Ham Cutlet is software which converts, intelligently indents and displays existing HTML source code that has been in. If the indentation is correct, we can recognize relations between tags and find design problems easily. We can copy the resulting source code and use it.
screenshot(2010-07-15 11.14.33).png
a smart HTML code such as this!

We often cut a part of source code out to be a template in other systems and output it repeatedly on the system. It can cause some  bad-looking source code to be generated easily. When you encounter unreadable source code, try it.
komagata’s hamcutlet at master – GitHub
http://github.com/komagata/hamcutlet

Post a comment