<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ACE Editor BootstrapTema</title>
<style>
#editor {
height: 350px;
}
@media only screen and (max-width: 990px) {
#editor {
height: 350px;
}
}
@media only screen and (max-width: 767px) {
#editor {
height: 250px;
}
}
@media only screen and (max-width: 479px) {
#editor {
height: 200px;
}
}
#editor *,
.editor * {
font-family: monospace !important;
font-size: 16px !important;
direction: ltr !important;
text-align: left !important;
}
</style>
</head>
<body>
<div id="editor">
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.6/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/clouds");
editor.getSession().setMode("ace/mode/html");
</script>
</body>
</html>