[wp-trac] [WordPress Trac] #27886: Code section highlight problem, doesn't ignore quotes in comments

WordPress Trac noreply at wordpress.org
Fri Apr 18 08:01:31 UTC 2014


#27886: Code section highlight problem, doesn't ignore quotes in comments
--------------------------+-----------------------------
 Reporter:  rabbitaaron   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 {{{
 #!html
 <code>
 [code lang='javascript']<br>
 var shouldNotBeHighlighted = 'hello,world';<br>
 // problem is here, you don't ignore the single quote inside this
 comment<br>
 console.log('hello,world' + shouldNotBeHighlighted + 'helloworld!');<br>
 // so that the syntax highlight is messed up!!<br>
 [/code]<br>
 </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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27886>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list