I just posted a code snippet here and noticed a couple of problems.

  1. No matter how I try to fix it, the frst line refuses to display properly indented.
  2. The few lines of code that I included in the top window, even though properly indented, refuse to display as properly formatted code.

Recommended Answers

All 3 Replies

This is happening because we trim leading and trailing whitespace from the entire snippet. I'll go ahead and change this so it's no longer the case. If it ends up being abused (as it was in the past), then I'll revert it back.

Grr, this is so frustrating! I don't know why the change didn't work. Hmm ...

Ah, nevermind. It was a silly mistake. I'm no longer stripping leading whitespace in code snippets.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.