R-WHILE syntax highlighter with Ace-js.
- Download
ace.jsandmode-rwhile.jsin the same directory on your project. - Write
HTMLas below.
<script src="js/ace.js"></script>
<div id="editor" style="height: 700px; width: 500px"></div>
<script>
var editor = ace.edit("editor");
editor.session.setMode("ace/mode/rwhile");
</script>For more information see http://ace.c9.io/.