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

In Delphi the \ does not escape a string ending, in Delphi if you want a ' you type:

StringVariable := 'Foo'' bar'; // comments

And it works as expected, but in an answer on StackOverflow I've always noticed a bug.

I've been able to create a small test case for this bug

StringVariable  := '\'; // comments

I think formatter has a preference for the c# / c style languages where the \ escapes the next char, so I'm not sure if this is a bug or a feature, this might even be a weird way of asking for a way to instruct the formatter that it's dealing Delphi...

share|improve this question
up vote 0 down vote accepted

It's open source -- submit a patch!

share|improve this answer
should have checked out which library you used instead of assuming that just like mark-down you created a fork from a known library. Will check out how viable a patch is. – Davy Landman Jul 18 '09 at 7:05

Your last suggestion, to make the syntax highlighter language-aware, is the only fool-proof solution for this and similar problems. Hopefully one day this feature will be added to SO.

share|improve this answer

You must log in to answer this question.

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