Sha256: 6a81987a37c24021bbbb277c46a73be0e04a0ae200fdf9799d67fa3899a7b010
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
<!DOCTYPE HTML> <html> <head> <title>JSONEditor | Custom styling</title> <link href="../dist/jsoneditor.css" rel="stylesheet" type="text/css"> <script src="../dist/jsoneditor.js"></script> <style type="text/css"> #jsoneditor { width: 500px; height: 500px; } p { width: 500px; font-family: "DejaVu Sans", sans-serif; } </style> <link href="./css/darktheme.css" rel="stylesheet" type="text/css"> </head> <body> <p> This example demonstrates how to customize the look of JSONEditor, the editor below has a dark theme. Note that the example isn't worked out for the mode <code>code</code>. To do that, you can load and configure a custom theme for the Ace editor. </p> <div id="jsoneditor"></div> <script> // create the editor var container = document.getElementById('jsoneditor'); var options = { modes: ['text', 'tree'] }; var json = { 'array': [1, 2, 3], 'boolean': true, 'null': null, 'number': 123, 'object': {'a': 'b', 'c': 'd'}, 'string': 'Hello World' }; var editor = new JSONEditor(container, options, json); </script> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems