Glavin001/atom-beautify

Request Language Support: grammar "ASP.NET Razor" and extension "cshtml"

开放

#612 创建于 2015年10月18日

 (6 条评论) (5 个反应) (1 位负责人)CoffeeScript (442 个派生)batch import
add-beautifieradd-languagegood first issuehelp wanted

仓库指标

星标
 (1,503 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hi, was wondering if support for the ASP.NET Razor language would be possible.

I've installed this package https://atom.io/packages/language-cshtml for the language support.

The beautifier for the HTML seems to to the trick (When selecting HTML as the grammar for the file) I just can't seem to get it auto-detecting when I followed the steps to add a new language to the package though (https://github.com/Glavin001/atom-beautify/wiki/Add-an-unsupported-language-using-an-existing-beautifier)

I've added a simple hello world snippet for testing

<div class="@(Model.Hello)">
  <span>
    @Html.Raw(Model.HelloWorld)

       @{
            //This is an inline code block
            var hellloWord = "Hello world";
           }   
   </span>
</div>

Any help would really be appreciated

贡献者指南