Ask Your Question

is it possible to add <pre> </pre> tags

asked 2013-08-19 10:06:12 -0500

mihai's avatar

On SO you can write code using

 echo Hello world 
tags that format/highlight the code nicely . Is it possible the same with askbot ?

edit retag flag offensive close merge delete


Does SO allow <pre> tags entered by hand?

Evgeny's avatar Evgeny  ( 2013-08-20 03:41:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-19 10:08:51 -0500

Evgeny's avatar

updated 2013-08-20 03:41:07 -0500

It's possible. It's better not to use HTML tags at all, but use the editor buttons to achieve formatting.

For example the "code" button with (1s and 0s) is the code formatter. Select the span or a block of code and click the button. Later you will see how to enter that markup by hand.

edit flag offensive delete link more


I think if we use something like $you code here$ instead of 4 white spaces it will be easier.

Mustafa's avatar Mustafa  ( 2013-08-30 18:44:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-08-19 10:06:12 -0500

Seen: 135 times

Last updated: Aug 20 '13