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.

5
  • 1
    Read this ubuntuforums.org/showthread.php?t=1006656
    – Braiam
    Commented Nov 16, 2013 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
    Commented Nov 16, 2013 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
    Commented Nov 16, 2013 at 12:25
  • ok I will check it.
    – user211076
    Commented Nov 16, 2013 at 12:27
  • 1
    @Mateo Don't encourage the use of HTML please >.<
    – Seth
    Commented Nov 16, 2013 at 18:46

1 Answer 1

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).

2
  • ok I got it now
    – user211076
    Commented Nov 16, 2013 at 12:42
  • 2
    Or select the whole block and do ctrl-k! Commented Nov 16, 2013 at 16:56

You must log in to answer this question.