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.

  • 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). – Stefano Palazzo Jan 29 '12 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. – Octavian Damiean Jan 29 '12 at 20:58
  • 1
    Ah. That would be great. – Stefano Palazzo Jan 29 '12 at 21:27
  • This looks awesome! – Bruno Pereira Jan 29 '12 at 22:28
  • Yes please! I could have sworn that we've asked for this before, but my search foo is failing me. – andrewsomething Jan 30 '12 at 2:41
  • A similar request on Super User: meta.superuser.com/questions/4266/… – N.N. Feb 4 '12 at 16:12
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.

You must log in to answer this question.

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