Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#27886 closed defect (bug) (invalid)

Code section highlight problem, doesn't ignore quotes in comments

Reported by: rabbitaaron's profile rabbitaaron Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: General Keywords:
Focuses: Cc:

Description

[code lang='javascript']
var shouldNotBeHighlighted = 'hello,world';
// problem is here, you don't ignore the single quote inside this comment
console.log('hello,world' + shouldNotBeHighlighted + 'helloworld!');
// so that the syntax highlight is messed up!!
[/code]

I was on http://rabbitaaron.wordpress.com/ when I found this bug.
Just add a new post and copy paste then you'll see.

Attachments (1)

bugs.png (8.7 KB) - added by rabbitaaron 11 years ago.

Download all attachments as: .zip

Change History (2)

@rabbitaaron
11 years ago

#1 @ocean90
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This should be reported to WordPress.com: http://en.support.wordpress.com/contact/.

Note: See TracTickets for help on using tickets.