How to convert plain text to html but keep the display format? -


i have 1 plain text program output, want display in html page. still want keep formats (like space/tab/enter , etc.), it's code block of stackoverflow, how can display in html ? thanks

use "pre" , "code" html tags:

<pre><code>   code in here...  </code></pre> 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -