Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2013-05-24 12:06:53 +0400
committerMichal Čihař <mcihar@suse.cz>2013-05-24 12:06:53 +0400
commit2af13548dae4cccbb27908a3dbc1c429102d8ea0 (patch)
tree496dc1b45c817a281f2fc32ee824dec651aec374 /js/codemirror
parent8c5daeeb38b5cd25263d770edc49b6ae440dc971 (diff)
Drop not used colorize addon
Diffstat (limited to 'js/codemirror')
-rw-r--r--js/codemirror/addon/runmode/colorize.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/js/codemirror/addon/runmode/colorize.js b/js/codemirror/addon/runmode/colorize.js
deleted file mode 100644
index 62286d21e4..0000000000
--- a/js/codemirror/addon/runmode/colorize.js
+++ /dev/null
@@ -1,29 +0,0 @@
-CodeMirror.colorize = (function() {
-
- var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
-
- function textContent(node, out) {
- if (node.nodeType == 3) return out.push(node.nodeValue);
- for (var ch = node.firstChild; ch; ch = ch.nextSibling) {
- textContent(ch, out);
- if (isBlock.test(node.nodeType)) out.push("\n");
- }
- }
-
- return function(collection, defaultMode) {
- if (!collection) collection = document.body.getElementsByTagName("pre");
-
- for (var i = 0; i < collection.length; ++i) {
- var node = collection[i];
- var mode = node.getAttribute("data-lang") || defaultMode;
- if (!mode) continue;
-
- var text = [];
- textContent(node, text);
- node.innerHTML = "";
- CodeMirror.runMode(text.join(""), mode, node);
-
- node.className += " cm-s-default";
- }
- };
-})();