First time here? Check out the FAQ!
0

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

On SO you can write code using

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

mihai's avatar
13
mihai
asked 2013-08-19 10:06:12 -0600
edit flag offensive 0 remove flag close merge delete

Comments

Does SO allow <pre> tags entered by hand?

Evgeny's avatar Evgeny (2013-08-20 03:41:28 -0600) edit
add a comment see more comments

1 Answer

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-08-19 10:08:51 -0600, updated 2013-08-20 03:41:07 -0600
edit flag offensive 0 remove flag delete link

Comments

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 -0600) edit
add a comment see more comments