riot.js ace tagを作る。
日本語の変換に目をつぶればace editorは簡単。
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="//gnjo.github.io/riot.js"></script>
<ace></ace>
<ace></ace>
<ace></ace>
<ace></ace>
<ace></ace>
<ace></ace>
riot.tag(`ace`
,`<pre ref="code"></pre>`
,function(opt){
let ed=null;
this.one('mount',function(){
ed = ace.edit(this.refs.code,{
maxLines: 30,
wrap: true,
autoScrollEditorIntoView: true
})
ed.setTheme("ace/theme/solarized_dark");
ed.session.setMode("ace/mode/javascript");
})
})
;
riot.mount('ace')
;
Author And Source
この問題について(riot.js ace tagを作る。), 我々は、より多くの情報をここで見つけました https://qiita.com/HadaGunjyo/items/edb6262a43e072b7911a著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .