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

When I am posting code using pre-code html tags, everything inside < > are lost, how to use html formatting correctly, so that I can see it ?

eg. if I have #include header.h, how can I use < > in header.h ?

share|improve this question

Method 1: Backticks for in-line code escaping: #include <header.h>.

(`#include <header.h>`)

Method 2: Four spaces for code blocks:

#include <header.h>

(four spaces after two newlines, followed by #include <header.h>)

Method 3: Regular HTML escape codes: < >. (&lt; for < and &gt; for >)

share|improve this answer

You can type

&lt; for < 
&gt; for >


Test below:



<Test>


Yea, it works.

share|improve this answer

You must log in to answer this question.

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