What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 149 Stack Exchange communities.

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

2 Answers 2

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:


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 .