Thursday 15 May 2014

Displaying a python file in HTML keeping the spaces etc -


I have written some python code, which I want to appear on my website, but clearly copy and paste text Due to HTML it is almost unreadable because recognizing the carrier returns and extra vacancy is not being removed.

Is there an easy way to show it in HTML as if it's a text editor or CDsing crap out of it?

& lt; Pre & gt; or & lt; Code & gt; ...



No comments:

Post a Comment