1

Can somebody please explain how to post CODE in here?

I followed this thread http://ubuntuforums.org/showthread.php?t=1189729 but it doesn't work for me. I copy and paste a code from Terminal and paste it here in [code]test[/code] but it doesn't work don't know I used this [code][/code] in different forums it worked.

  • 1
    Read this ubuntuforums.org/showthread.php?t=1006656 – Braiam Nov 16 '13 at 11:29
  • [code]it doesn't work either I even copied example from this link and paste it in here[/code] [code] <script type="text/javascript"> <!-- alert("Hello world!"); //--> </script> [/code] – user211076 Nov 16 '13 at 12:23
  • 2
    That link won't help you here on Ask Ubuntu but in Ubuntu forums. If you want help with formating in Ask Ubuntu check the link in Oli's answer. – Braiam Nov 16 '13 at 12:25
  • ok I will check it. – user211076 Nov 16 '13 at 12:27
  • 1
    @Mateo Don't encourage the use of HTML please >.< – Seth Nov 16 '13 at 18:46
10

A few answers, you can take your pick from:

tldr For blocks of code, prepend the line with four spaces, for shorter blocks, wrap in `` (backticks).

  • ok I got it now – user211076 Nov 16 '13 at 12:42
  • 2
    Or select the whole block and do ctrl-k! – Jorge Castro Nov 16 '13 at 16:56

You must log in to answer this question.