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.