Ham Cutlet – Indent HTML smart

PUBLIC_FLAG_#{@journal.pf_int} RSS feed of michihide's latest journal entries Aug 07th 2010 17:26
Ham Cutlet is a Freeware written in Ruby/Sinatra. Its source code has been released to the public.
We often see some source codes which ignore indent perfectly. Not so easy to read such stuff. Though it never runs if it is a Python code, in other case, we might ignore the fact. Hot as pepper.

Still and all, they might be unified in a way in case of some programing languages. The problem is HTML sources. We sometimes encounter a hell of source code. In that case, we should use Ham Cutlet.

Ham Cutlet is a software which converts indent smartly and displays an existing HTML source code pasted and run. If indent is correct, we can recognize relations between tags and find design problems easily. We can copy the result of source codes and use them.

We often cut a part of source code out to be a template in gearing to other systems, output it repeatedly on system. It cause some bad-looking source codes are generated easily. When you encounter an unreadable source code, try it.

( Original post is http://openalexandria.com/2010/07/ham-cutlet-indent-html-smart/ )
Aug 07th 2010 18:06 Alex

  • Ham Cutlet – Indent HTML smart
  • Ham Cutlet – Indent HTML smart Intelligent HTML Indentation ("Intelligently Indent HTML" would also work)

 

  • Ham Cutlet is a Freeware written in Ruby/Sinatra.
  • Ham Cutlet is a freeware written in Ruby/Sinatra. (we usually just say "freeware"; you don't need "a" or "the")

 

  • We often see some source codes which ignore indent perfectly.
  • We often see some source codes which ignore that isn't indented perfectly. (we always say "source code", never "source codes")

 

  • Not so easy to read such stuff.
  • It is not so easy to read such stuff.

 

  • Though it never runs if it is a Python code, in other case, we might ignore the fact.
  • Though it would never runs if it is a was Python code, in other cases, we might simply ignore the fact it.

 

  • Hot as pepper.
  • Hot as pepper. (I don't understand this)

 

  • Still and all, they might be unified in a way in case of some programing languages.
  • Still and all, they might be unified in a way in case of some programing languages. (I don't understand this)

 

  • The problem is HTML sources.
  • The One problem is HTML sources code.

 

  • We sometimes encounter a hell of source code.
  • We sometimes encounter a hellish of source code.

 

  • Ham Cutlet is a software which converts indent smartly and displays an existing HTML source code pasted and run.
  • Ham Cutlet is a software which converts, intelligently indents, smartly and displays an existing HTML source code that has been pasted and run in. ("smartly" is not a word: you have to use "intelligently")

 

  • If indent is correct, we can recognize relations between tags and find design problems easily.
  • If the indentation is correct, we can recognize relations between tags and find design problems easily.

 

  • We can copy the result of source codes and use them.
  • We can copy the resulting of source codes and use them it. ("source code" is singular, so you need to use singular pronouns ("it", not "them", etc.))

 

  • We often cut a part of source code out to be a template in gearing to other systems, output it repeatedly on system.
  • We often cut a part of source code out to be a template in gearing to other systems, and output it repeatedly on the system.

 

  • It cause some bad-looking source codes are generated easily.
  • It can cause some bad-looking source codes are to be generated easily.

 

  • When you encounter an unreadable source code, try it.
  • When you encounter an unreadable source code, try it.

 
Badly-indented HTML is definitely hard to read, so this sounds like a cool piece of software. Is it open-source? Does it work on all HTML, or just XHTML?

Your English is very good, and you use lots of technical terms. Remember that "source code" is always singular, and "smartly" isn't a word, and you'll be fine.

Keep up the good work!
Aug 07th 2010 19:05 michihide

> Hot as pepper. (I don't understand this)

I'm changing this to "We can't stand it.". Do you think it is suitable for its context? I want to mean that indentation is not important in execution, but we don't want to have a bitter time with dirty code or something like that... ;-)

> Still and all, they might be unified in a way in case of some programing languages. (I don't understand this)

I'm changing this to "In case of some programming languages, programmers might even set indentation to somewhat bearable level.". Do you understand?

> Is it open-source? Does it work on all HTML, or just XHTML?

You may download the source code at http://github.com/komagata/hamcutlet . I don't know whether it works on all HTML bacause I didn't try it, just translated the description ;-)

Thank you for correcting my post.
Article in English is very difficult for me!

Journals Statistics

Latest entry

See more >>

Latest comments

See more >>

Entries by Month