git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
querycode to use syntaxhighlighter again
[unfold.git]
/
plugins
/
querycode
/
querycode.js
diff --git
a/plugins/querycode/querycode.js
b/plugins/querycode/querycode.js
index
65c6d0d
..
0898e4a
100644
(file)
--- a/
plugins/querycode/querycode.js
+++ b/
plugins/querycode/querycode.js
@@
-7,9
+7,6
@@
* License: GPLv3
*/
* License: GPLv3
*/
-// xxx TODO
-// . turn back on syntax highlighting
-
(function($) {
var debug=false;
(function($) {
var debug=false;
@@
-28,8
+25,8
@@
var methods = {
init : function (options) {
var methods = {
init : function (options) {
- if (debug) console.log("
temporarily turned off SyntaxHighlighter
...");
-
//
SyntaxHighlighter.all();
+ if (debug) console.log("
SyntaxHighlighter.all
...");
+
SyntaxHighlighter.all();
return this.each(function() {
var $this=$(this);
var data=$this.data('QueryCode');
return this.each(function() {
var $this=$(this);
var data=$this.data('QueryCode');
@@
-86,9
+83,8
@@
}
html_code=fun(query);
dom.html(html_code);
}
html_code=fun(query);
dom.html(html_code);
- if (debug) console.log("turned off SyntaxHighlighter.highlight");
-// SyntaxHighlighter.highlight()
-
+ if (debug) console.log("SyntaxHighlighter.highlight");
+ SyntaxHighlighter.highlight()
}
}