Processing math: 100%
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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mihai's avatar
13
mihai
asked 11 years ago

Comments

Does SO allow <pre> tags entered by hand?

Evgeny's avatar Evgeny (11 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago, updated 11 years ago
link

Comments

I think if we use something like youcodehere instead of 4 white spaces it will be easier.

Mustafa's avatar Mustafa (11 years ago)
see more comments