Roo/doc/Example.js
[roojs1] / Roo / doc / Example.js
index 5009aa1..b6b560b 100644 (file)
@@ -33,7 +33,7 @@ Roo.extend(Roo.doc.Example, Roo.bootstrap.Component,  {
         
         // no colour highlighting in here....
         
-        var code = hljs ? hljs.highlight(this.code, this.lang.toUpperCase()) : String.format('{0}',this.code).replace(/\n/g, '<br/>');
+        var code = hljs ? hljs.highlight(this.lang.toUpperCase(),this.code) : String.format('{0}',this.code).replace(/\n/g, '<br/>');
         
         
         var cfg ={