').html(app.actions[k].doc.replace('/\n/
\n/g')));
-
- var $code = $('').html(app.actions[k].code.replace('/\n/
\n/g'))
- .hide();
+ var $doc =$('')
+ .html(app.actions[k].doc.replace('/\n/
\n/g'))
+ .appendTo(info);
+ var $code = $('')
+ .html(app.actions[k].code.replace('/\n/
\n/g'))
+ .hide();
var $button = new Ox.Button({
title: [
{id: "one", title: "expand"},
@@ -133,8 +135,10 @@ function constructList() {
.addClass("margin")
.click(function() { $code.toggle()})
.appendTo(info)
- $('').html(' View Python Source').appendTo(info)
- $code.appendTo(info)
+ $('').html(' View Python Source').appendTo(info)
+ $('').append($code).appendTo(info)
+ hljs.highlightBlock($code[0], ' ');
+
hash += k + ','
});
else