Ask Your Question
0

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

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

mihai gravatar image

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

Comments

Does SO allow <pre> tags entered by hand?

Evgeny gravatar imageEvgeny ( 2013-08-20 03:41:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Evgeny gravatar image

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

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

Comments

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

Mustafa gravatar imageMustafa ( 2013-08-30 18:44:32 -0600 )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

Stats

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

Seen: 62 times

Last updated: Aug 20 '13