livebs / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

No syntax highlighted = no toolbar #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a small bug in the Highlight function..

if(this.matches.length==0){
 :
 :
 return;
}

doesn't add the toolbar if there were no syntax matches.

Adding

this.div.appendChild(this.bar);

before 

this.div.appendChild(this.ol);

fixes this issue.

(I'm referring to the compressed source, sorry).

Original issue reported on code.google.com by u1_goo...@dslr.net on 5 Jul 2007 at 12:55

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 5 Aug 2007 at 2:04

GoogleCodeExporter commented 8 years ago

Original comment by alex.gor...@gmail.com on 5 Aug 2007 at 2:53