12

Reading this answer I've realized that we don't have Google Code Prettify support on Ask Ubuntu like we have on Stack Overflow.

Since we agreed that we welcome Ubuntu development questions I think we should also have Google Code Prettify support.

6
  • We'd have to make sure it doesn't mess up the bulk of code blocks, which is log files (most of them) and shell scripts (some). Jan 29, 2012 at 20:55
  • 2
    If we could get it to default to lang-none then it wouldn't be a problem. On Stack Overflow it infers the language based on the tags. We can have it set via <!-- language: lang-type --> if we don't want to have single language tags on Ask Ubuntu. Jan 29, 2012 at 20:58
  • 1
    Ah. That would be great. Jan 29, 2012 at 21:27
  • This looks awesome! Jan 29, 2012 at 22:28
  • Yes please! I could have sworn that we've asked for this before, but my search foo is failing me. Jan 30, 2012 at 2:41
  • A similar request on Super User: meta.superuser.com/questions/4266/…
    – N.N.
    Feb 4, 2012 at 16:12

1 Answer 1

7

It is done. :)

You have syntax highlighting enabled and moderators can configure the setting for individual tags from their respective tag wiki info pages. The default is "none".

For more info on the finer points of syntax highlighting, see here.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .