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: |
|
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
This should be reported to WordPress.com: http://en.support.wordpress.com/contact/.