Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This question already has an answer here:

I'm sorry if this question has come up before, but numerous searches proved fruitless.

How do I include a block of HTML markup in a code snippet within a post here, without the post editor trying to render it? I have a PHP/HTML/CSS question and can't for the life of me figure out how to include the relevant code.

share|improve this question

marked as duplicate by Shadow Wizard support Nov 27 '14 at 15:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'm sure this is a dupe. Regardless, select the text you're trying to paste in, then click the {} button in the toolbar, it's to the right of the quote tool and the left of the picture tool. This will mark the text as code by automatically indenting it four spaces. For more help, click the big fat question mark button on the right side of the toolbar. – Charles Feb 13 '12 at 17:13
Wow, I know for a fact I tried that at least once to no avail. Could it have had something to do with the fact that the first line of each snipped was *** filename.php ***, reflecting the name of the file being displayed? Thanks! – Rich.Carpenter Feb 13 '12 at 17:18
Code formatting can act a bit funny if there's only one newline between it and the preceding line. – Charles Feb 13 '12 at 17:23

Indent by four spaces, like with any other code snippet.

    <title>Title for your page</title>
share|improve this answer
What if I use <pre></pre>? – cst1992 Apr 19 at 6:14

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