sciolism

Playing around with technology

Introducing Ace OSF mode

I recently introduced CodeMirror OSF mode. For an upcoming project (spoiler!) I need an editor which features live validation of OSF documents. The popular editor Ace has an easy way to implement such features. Ace OSF mode was born.

Install

This Ace mode is available once you have installed Ace in your document. Then, all you have to do is to select this mode in Ace. E.g. like this:

<script type="text/javascript">
  var editor = ace.edit("code");
  editor.setTheme("ace/theme/textmate");
  editor.getSession().setMode("ace/mode/osf");
</script>

Demo

Download

Ace OSF mode is released under the MIT license.

Fork on GitHub   Download from GitHub

Article info