summaryrefslogtreecommitdiff
path: root/share/www/document.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-12 21:06:35 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-12 21:06:35 +0000
commita58246859370c52b5209fe94a043bdcc7f8b7001 (patch)
tree9cdc1bb00a2b007a2b1bd057a35777532b4b995d /share/www/document.html
parentd51618067f7d2fcb8fa751ddb89e4c9693d0b52c (diff)
Add syntax highlighting of JSON code in Futon.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@733897 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/document.html')
-rw-r--r--share/www/document.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/document.html b/share/www/document.html
index 8308d9d9..a6a4821c 100644
--- a/share/www/document.html
+++ b/share/www/document.html
@@ -27,7 +27,7 @@ specific language governing permissions and limitations under the License.
<script src="script/jquery.resizer.js?0.9.0"></script>
<script src="script/futon.js?0.9.0"></script>
<script src="script/browse.js?0.9.0"></script>
- <script src="script/pprint.js?0.9.0"></script>
+ <script src="script/futon.format.js?0.9.0"></script>
<script>
var page = new CouchDocumentPage();
@@ -59,7 +59,7 @@ specific language governing permissions and limitations under the License.
$("#fields thead th:first").text("Source").attr("colspan", 2).next().hide();
$("#fields tbody.content").hide();
$("#fields tbody.source").find("td").each(function() {
- $(this).html($("<code></code>").text(prettyPrintJSON(page.doc)));
+ $(this).html($("<pre></pre>").html($.futon.formatJSON(page.doc, {html: true})));
}).end().show();
});