実現したいこと
Aceエディターの実行結果を、
同じブラウザに表示したいんですけども、
どなたかやり方を教えてくれませんか...?
イメージとしては、
画面左側の余白に「Hello」と
表示したいです。
発生している問題・エラーメッセージ
該当のソースコード
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>Ace Editor sample</title> <link rel="stylesheet" href="index2.css"> </head> <body> <div class="size" id="editor" style="height: 300px"></div> <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ace.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ext-language_tools.js"></script> <script> var editor = ace.edit("editor"); editor.$blockScrolling = Infinity; editor.setOptions({ enableBasicAutocompletion: true, enableSnippets: true, enableLiveAutocompletion: true }); editor.setTheme("ace/theme/monokai"); editor.getSession().setMode("ace/mode/javascript"); </script> </body> </html> 以下CSSです .size{ width: 300px; }