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

I absolutely cannot get the code in this answer to display properly. It's enclosed in backticks as I've been doing before without issue. I'm sure there's a known solution, but I can't seem to find it - any input is appreciated!

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Basically, you are doing it wrong.

Bactics cannot span mulitple lines, they are only meant to be used inline.

Indent code 4 spaces to format code. See how I edited your question for an example.

When referencing a class like String or method like equals(Object other) use backticks.

But if giving a larger example:

// This code loops forever
for (int i = 0; i < 10000; i--);

Indent by 4 spaces. (View source)

share|improve this answer
That explains it. Awesome, thank you! – Gavin Oct 21 '10 at 16:06

You must log in to answer this question.

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