I want to display the whole html dom in my ace editor like on the "Embedding Guide" on the ace editor site.
The problem is that my editor displays the full number of lines but only the javascript section.
this is my ace code:
<div id="editor">
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mostslider/themes/default/default.css">
</head>
<body>
<div class="silder-wrapper default">
<div id="slider">
<img src="photo1.jpg" />
<img src="photo1.jpg" />
<img src="photo1.jpg" />
</div>
</div>
<script src="js/vendor/jquery-1.10.1.min.js"></script>
<script src="mostslider/slider.min.js"></script>
<script>
$(document).ready(function(){
var slider = $("#slider").slider({
metrics: {
width: 800,
height: 600
}
});
});
</script>
</body>
</html>
</div>
The only thing that gets displayed is:
$(document).ready(function(){
var slider = $("#slider").slider({
metrics: {
width: 800,
height: 600
}
});
});
What am I doing wrong?
<html>document inside a<div>...