summaryrefslogtreecommitdiff
path: root/share/www/script/futon.format.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/futon.format.js')
-rw-r--r--share/www/script/futon.format.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/futon.format.js b/share/www/script/futon.format.js
index 674f5f8f..601a91d3 100644
--- a/share/www/script/futon.format.js
+++ b/share/www/script/futon.format.js
@@ -72,6 +72,9 @@
}
if (index >= 0) buf.push(options.linesep, tab.substr(options.indent));
buf.push("]");
+ if (options.html) {
+ return "<code class='array'>" + buf.join("") + "</code>";
+ }
} else {
buf.push("{");
@@ -94,6 +97,9 @@
}
if (index >= 0) buf.push(options.linesep, tab.substr(options.indent));
buf.push("}");
+ if (options.html) {
+ return "<code class='object'>" + buf.join("") + "</code>";
+ }
}
return buf.join("");