Ace Editor Plugin for MVC Razor syntax -
how can create plugin ace editor support razor syntax. ace home page: http://ace.c9.io
here started implementation of razor syntax highlighting in ace. credits goes andrey shchekin member of stack overflow.
download branch of ace git. in node.js command prompt go directory , following:
npm install
node makefile.dryice.js full
then copy src folder want work , configure ace this.
var editor = ace.edit("editor"); editor.settheme("ace/theme/chrome_razor"); //razor css editor.getsession().setmode("ace/mode/razor"); //razor syntax!!!
a sample of how looks like
thank andrey starting off boost more people can tinker it.
Comments
Post a Comment