First time here? Check out the FAQ!
0

syntax highlighting
 

http://pygments.org/ supports quite a few. Would it be possible for Askbot to take advantage of this?

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)
mether's avatar
1.5k
mether
asked 13 years ago

Comments

see more comments

1 Answer

1

Actually, askbot has syntax highlighting - google-code-prettify, written in javascript.

It works well imo, and because it runs on the client - works in the previews as well.

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 13 years ago
link

Comments

I see. Alright then.
mether's avatar mether (13 years ago)

Well, it works with code using the Markdown 4 spaces prefix. But it doesn't work with Mardown ``` syntax.

hroncok's avatar hroncok (10 years ago)
see more comments