Ask Your Question
1

How can I customise the keywords the preformatted text recognises?

asked 2011-03-12 07:24:41 -0500

Rupreck gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-03-12 08:25:35 -0500

Evgeny gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-12 07:24:41 -0500

Seen: 80 times

Last updated: Mar 12 '11