3

how to input my code in my question?

I want to input a segment of code to ask a question

but stackoverflow alway hints me that my format is not correct

but I really don't know how to make a good format

do you have any picture illustration to show me step by step??

1

1 Answer 1

3

Highlight all your codes and press ctrl + k (control and K).

For example

<?php
echo 'foo';
?>

Or indent (press spacebar) 4 times, before the a line of text.

like this

To find help press the ? button at the top-right of the text-area.

enter image description here

4
  • 1
    "This is example"... I accidentally an indefinite article. Apr 22, 2014 at 18:55
  • I think you meant "I accidentally indefinite article" @Robert :-).
    – Ben
    Apr 22, 2014 at 18:58
  • That's what I get for trying out a meta meta joke on a programming meta website. How about "Syntax Error - Missing Indefinite Article." Apr 22, 2014 at 18:59
  • I'm on the slow-thinking side. I'll catch it tomorrow maybe.
    – samayo
    Apr 22, 2014 at 19:00

You must log in to answer this question.

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