R-WHILE syntax highlighter with Ace-js.
- Download
ace.js
andmode-rwhile.js
in the same directory on your project. - Write
HTML
as 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/.