First time here? Check out the FAQ!
1

How can I customise the keywords the preformatted text recognises?
 

Our Q&A site for our command language would look great if the preformatted option could recognise our keywords. eg:

SAMPLE 1 100
GENR p1=1+nor(1)
SYSTEM 4 / DN NOCONSTANT COEF=beta
STOP

The capitalised commands shown are the ones we would like to color, however the commands are not necessarily capitalised. Where are the rules for colouring things like numbers and commands like 'end' coming from? eg:

1 2 3
end

Thanks in advance.

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)
Rupreck's avatar
305
Rupreck
asked 14 years ago

Comments

see more comments

1 Answer

0

Hi Rupreck, Askbot uses google-code-prettify, the version in askbot is about 2 years out of date (but can be updated of course)

Here is the link: http://code.google.com/p/google-code-prettify/

Have a look, maybe it can be customized, also if you think it could be done through askbot - please drop a note, maybe we'll add a setting or something like that.

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

Comments

see more comments