Ace Editor Plugin for MVC Razor syntax [closed]

久未见 提交于 2019-12-04 06:36:32
Piotr Kula

Here is a started implementation of Razor syntax highlighting in ACE. All credits goes to Andrey Shchekin a member of Stack Overflow.

Download his branch of the ACE from GIT. In Node.JS command prompt go to the directory and do the following:

  1. npm install
  2. node Makefile.dryice.js full

Then copy the src folder that you want to work with and configure ace like 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 it looks like

Thank you so much to Andrey for starting this off hopefully it will get a boost now more people can tinker with it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!