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
  • StackOverflow Formatting. Try google before asking questions here. The google link will show you how I found your answer in the first link of a google search. Commented Apr 22, 2014 at 16:17

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. Commented Apr 22, 2014 at 18:55
  • I think you meant "I accidentally indefinite article" @Robert :-). Commented 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." Commented Apr 22, 2014 at 18:59
  • I'm on the slow-thinking side. I'll catch it tomorrow maybe. Commented Apr 22, 2014 at 19:00

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.