mirror of https://github.com/IoTcat/PyOne.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
661 B
21 lines
661 B
{%extends 'show/iframe_base.html'%} |
|
|
|
{%block content%} |
|
<pre id="editor" >{{content|safe}}</pre> |
|
<script src="https://cdn.staticfile.org/ace/1.4.2/ace.js"></script> |
|
<script src="https://cdn.staticfile.org/ace/1.4.2/ext-language_tools.js"></script> |
|
<script> |
|
var editor = ace.edit("editor"); |
|
editor.setTheme("ace/theme/ambiance"); |
|
editor.setFontSize(18); |
|
editor.session.setMode("ace/mode/{{language}}"); |
|
|
|
//Autocompletion |
|
editor.setOptions({ |
|
enableBasicAutocompletion: true, |
|
enableSnippets: true, |
|
enableLiveAutocompletion: true, |
|
maxLines: Infinity |
|
}); |
|
</script> |
|
{%endblock content%}
|
|
|