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:

  1. npm install
  2. 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

enter image description here

thank andrey starting off boost more people can tinker it.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -