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.

Rupreck's avatar
305
Rupreck
asked 2011-03-12 07:24:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2011-03-12 08:25:35 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments