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

This question already has an answer here:

It appears that Ruby class variables aren't fully highlighted on Stack Overflow:

class Foo
  @class_instance_var = 1 # fine
  @@class_var = 2         # not fully highlighted

The class instance variable gets full highlighting, but the double @ seems to throw the highlighter a bit.

Here's an SO question with this in action: Why @@class_variable syntax should be avoided in Ruby?

Update: 5th April

I've submitted an issue to the google prettify repository, with a patch that appears to solve the problem. Thanks to @CodyGray for the information.

share|improve this question

marked as duplicate by ben is uǝq backwards, Rory, Martijn Pieters, Lucifer, Mat Jun 15 '13 at 16:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Upvoted, since this happens even if you use language-specific syntax highlighting. – Nightfirecat Apr 4 '13 at 16:18
Removed previous wrong comment of mine and its answer. – Sklivvz Apr 5 '13 at 16:16

The Stack Exchange team outsources code highlighting to Google Prettify, so this bug will need to be filed with and corrected by the Prettify team.

Once Prettify is updated, the latest version can be deployed across the network. (You might need to ping one of them with a request to do so.)

It might be a simple fix. If you know how to do it yourself, you might go ahead and submit a patch.


share|improve this answer
Thanks, I've created an issue and submitted a patch on google prettify. – Jon Cairns Apr 5 '13 at 9:13

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