Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 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

Possible Duplicate:
How do I format my code blocks?

I was answering a question, and needed to include HTML in my answer, but it didn't show up. For example:

I worked around it by adding a space before the tag name:

< html>

but that's an ugly workaround. Is there a better way?

share|improve this question

marked as duplicate by Martijn Pieters, Time Traveling Bobby, yoozer8, kiamlaluno, Bill the Lizard Sep 10 '12 at 15:17

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.

Not sure what your asking, but try selecting the HTML and clicking the {} button on the editor toolbar. That should indent the HTML by four spaces (the markdown way to format code blocks). – bfavaretto Sep 10 '12 at 14:59
That's because the code block is in a list, you have to indent 4 spaces more than usual. – CharlesB Sep 10 '12 at 15:00
It appears that someone has edited your answer so that the HTML renders as code. I'd suggest you look at how they've formatted your answer. – Al E. Sep 10 '12 at 15:01
Thinking better, it is not exactly a duplicate, as the other question doesn't say anything about the 8 spaces required in a list. – kiamlaluno Sep 10 '12 at 15:10
This is not the first time. You have other answers which are broken because you're using HTML tags without escaping them. You've posted 70 answers, it might be finally time to learn to use the editor. Please stop using "&" instead of "and" while you're at it. – meagar Sep 10 '12 at 15:24

You just need to indent the code of 4 spaces, outside a list, and 8 spaces in a list. Differently, HTML tags that are not allowed are filtered out; the other HTML tags are rendered.

  • Inside a list

  • Second dot


Without indenting it, you get the following:

You can not use Markdown in here. <em> is rendered
<html> is filtered out

What I wrote in the previous lines in the following:

You can <em>not</em> use Markdown in here. `<em>` is rendered  
<html> `<html>` is filtered out  
share|improve this answer

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