big-moving.ru/api/soft/ajaxorg/demo/xml.xml

34 lines
1.0 KiB
XML
Raw Normal View History

2022-06-24 15:29:23 +05:00
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta charset="UTF-8"></meta>
<title>ACE Autocompletion demo</title>
<style type="text/css" media="screen">
body { overflow: hidden; }
#editor {
margin: 0; position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
}
</style>
</head>
<body>
<pre id="editor"></pre>
<script src="kitchen-sink/require.js"></script>
<script><![CDATA[
// setup paths
require.config({paths: { "ace" : "../lib/ace"}});
// load ace and extensions
require(["ace/ace", "ace/ext/language_tools"], function(ace) {
var langagueTools = require("ace/ext/language_tools");
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/xml");
editor.setTheme("ace/theme/tomorrow");
});
]]></script>
<script src="./show_own_source.js"></script>
</body>
</html>