Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

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

Open seanoldfield opened 9 years ago

seanoldfield commented 9 years ago

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

prettydiff commented 8 years ago

A beautifier is suggested at https://github.com/Glavin001/atom-beautify/issues/627#issuecomment-241389756

A following comment demonstrates that Pretty Diff is insufficient without a few enhancements.

guidobouman commented 7 years ago

Any progress on this? With dotnet core running nicely on macOS this is more important than ever.

farzindev commented 7 years ago

@prettydiff Any progress on this?

mwoffenden commented 6 years ago

Is support for CSHTML coming soon?

lgc13 commented 6 years ago

I found a fix:

  1. Download the language-cshtml package https://atom.io/packages/language-cshtml

  2. Change you ~/.atom/config.cson to include the following:

"*":
    core:
       customFileTypes:
         "text.html.cshtml": [
           "cshtml"
         ]
scooterlord commented 2 years ago

Hello and sorry for reviving this topic. Looks like the author has had his account locked / shut down. Can anyone provide the file or any other solution? Thank you!