First time here? Check out the FAQ!
0

askbot has maybe parsing problems
 

Is this an error in the wiki parsing. When I indent a line by four spaces and have a linefeed between it and the text before it is rendered as code/preformatted. E.g.:

code
code
code

But after the first enumeration it is broken:

  1. Again, level one
  2. some things
  3. foo bar things

    for x in range(0, 3): print "We're on time %d" % (x)

This is the error I mean! How can I write code after an enumeration? Only solution: I have to write something above the code.

Example:

  1. aaa
  2. bbb
  3. ccc

This is a thing that I have to write, otherwise the following code isn’t formatted as code:

for x := 1 to 7 do
  writeln(x);

Is this fixable?

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)
updated 12 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.

Comments

Interesting... Askbot depends on markdown2 python lib for this, maybe it's a problem on that lib, I'll do some tests

Fitoria's avatar Fitoria (12 years ago)

interesting.. I gave an answer to this post, but the answer is invisible, because i've removed the wiki check mark. however you need 8 spaces for your code to make it looking like a code

Toms's avatar Toms (12 years ago)

ok, my answer is back.. after posting the above comment

Toms's avatar Toms (12 years ago)
see more comments

1 Answer

1

I have had a similar question

Here is the solution (8 spaces):

  1. Again, level one
  2. some things
  3. foo bar things

    for x in range(0, 3):
    print "We're on time %d" % (x)
    

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)
Toms's avatar
767
Toms
answered 12 years ago
link

Comments

Thank you.

erik's avatar erik (12 years ago)
see more comments