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

I noticed the C# keywords yield, await and async are not correctly highlighted by the C# syntax highlighter.

E.g.: Proper Use of yield return, C# Socket.BeginReceive/EndReceive

Can these keywords be added to the formatter?

share|improve this question

closed as off topic by animuson, Toon Krijthe, kiamlaluno, Grant Thomas, jmort253 Oct 16 '12 at 5:11

Questions on Meta Stack Exchange are expected to relate to the software that powers the Stack Exchange network within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Nope, this is the right place to ask. – Martijn Pieters Oct 13 '12 at 8:58
@MartijnPieters: well, not really. SE uses Google's prettify library. Bugs for that or feature requests should, I believe, be addressed there. – Mat Oct 13 '12 at 9:16
@Mat: are we expecting now that all SO users know how SO is built? Isn't it the responsibility of the developers to tune the tools? It may be that the library needs updating, and that they need notifying, but you cannot expect Joe Soap using SO to know this or file the report. – Martijn Pieters Oct 13 '12 at 9:17
@Martijn: I'm just repeating what I've seen multiple times here (e.g. – Mat Oct 13 '12 at 9:20
@Mat: Not sure I agree with Jeff there then. :-) In any case, this is still the right place to learn about what library is used. – Martijn Pieters Oct 13 '12 at 9:25
@MartijnPieters: It's also in the tag wiki for that tag you added to the question. – animuson Oct 13 '12 at 12:50
Expanded: it isn't just yield... (edit pending review) – Richard Oct 13 '12 at 17:27
@Mat: this question can serve as that answer, but discoverable based on language and keyword (ie. when a new user discovers the problem would they find Jeff's answer? I just failed to and if this had not been here would have created a new question). Remember not all duplicates are bad, if they provide another route to the same answer... – Richard Oct 13 '12 at 17:35
Same issue happens for SQL, though a bigger problem exists there: not all keywords are appropriate for all RDBMS flavors / versions. – Aaron Bertrand Oct 13 '12 at 20:55
Same happens for PHP and Visual Basic .NET. – Ryan O'Hara Oct 14 '12 at 18:24
Of all the close reasons to pick as a proxy for "this is a problem in an upstream library, which we can't/won't do anything about", "off topic" seems to me to be the least appropriate. – AakashM Oct 15 '12 at 8:24
I looked at the Google Prettify FAQ ( You can specify language: <pre class="prettyprint lang-html", where lang-html could be "cs". I tried an edit -- no luck. – kevinarpe Oct 15 '12 at 13:38
Actually, I agree with the flagging now. I flagged it as a dupe myself. – kevinarpe Oct 15 '12 at 13:46
possible duplicate of Syntax-highlighting doesn't detect virtual as a keyword for C#? – jmort253 Oct 16 '12 at 5:11