limit lines in preview to 10

Instead of limiting the chars we should limit the lines.
It's more readable and also makes highlighting for pygments
more reliable.
Merge pull request #25 from darinkes/limit_lines

limit lines in preview to 10