Ask Your Question

How can I customise the keywords the preformatted text recognises?

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

Rupreck's avatar

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)

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

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

Evgeny's avatar

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:

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


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

Seen: 168 times

Last updated: Mar 12 '11