Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ASP NET source code working bad #107

Closed
a3code opened this Issue Mar 22, 2012 · 4 comments

Comments

Projects
None yet
4 participants

a3code commented Mar 22, 2012

if put some MS ASP NET source code (from VS)
it looks not so well and broke server control settings,

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExcursionShortViewList.ascx.cs"
    Inherits="ShortViewList" %>
<h2><asp:Literal ID="lblTitle" runat="server" EnableViewState="false"></asp:Literal></h2>
<p><asp:Literal ID="lblDesc" runat="server" EnableViewState="false"></asp:Literal></p>
<asp:Repeater ID="rptExcursion" runat="server" EnableViewState="false">
    <ItemTemplate>
        <div class="oddExcursion">
         <a href="<%# DataBinder.Eval(Container.DataItem, "URL")%>" title="<%# DataBinder.Eval(Container.DataItem, "Caption")%>"> 
                 <img src="<%# GetImageFromList(DataBinder.Eval(Container.DataItem, "Images")) %>" alt="<%# DataBinder.Eval(Container.DataItem, "Caption")%>" />
            </a>
            <p>
                <a href="<%# DataBinder.Eval(Container.DataItem, "URL")%>" data-excursionId="<%# DataBinder.Eval(Container.DataItem, "ID")%>">
                    <%# DataBinder.Eval(Container.DataItem, "Caption")%>
                </a><span>
                    <%# GetDicText("DuractionLabel")%>:
                    <%# DataBinder.Eval(Container.DataItem, "Duration")%></span> <span>
                        <%# GetDicText("Price")%>
                        :
                        <%# DataBinder.Eval(Container.DataItem, "Duration")%>
                        <%# DataBinder.Eval(Container.DataItem, "Price")%></span> <span>
                        <%# DataBinder.Eval(Container.DataItem, "ShortDesc")%></span>
            </p>
             <button class="btnExcursion makeOrder" data-excursionId="<%# DataBinder.Eval(Container.DataItem, "ID")%>"><%# GetDicValue("MakeOrder") %></button>
        </div>
    </ItemTemplate>
    <AlternatingItemTemplate>
       <div class="evenExcursion">
         <a href="<%# DataBinder.Eval(Container.DataItem, "URL")%>" title="<%# DataBinder.Eval(Container.DataItem, "Caption")%>">
              <img src="<%# GetImageFromList(DataBinder.Eval(Container.DataItem, "Images")) %>" alt="<%# DataBinder.Eval(Container.DataItem, "Caption")%>" />
            </a>
            <p>
                <a href="<%# DataBinder.Eval(Container.DataItem, "URL")%>" data-excursionId="<%# DataBinder.Eval(Container.DataItem, "ID")%>">
                    <%# DataBinder.Eval(Container.DataItem, "Caption")%>
                </a><span>
                    <%# GetDicText("DuractionLabel")%>:
                    <%# DataBinder.Eval(Container.DataItem, "Duration")%></span> <span>
                        <%# GetDicText("Price")%>
                        :
                        <%# DataBinder.Eval(Container.DataItem, "Duration")%>
                        <%# DataBinder.Eval(Container.DataItem, "Price")%></span> <span>
                        <%# DataBinder.Eval(Container.DataItem, "ShortDesc")%></span>
            </p>
             <button class="btnExcursion makeOrder" data-excursionId="<%# DataBinder.Eval(Container.DataItem, "ID")%>"><%# GetDicValue("MakeOrder") %></button>
        </div>
    </AlternatingItemTemplate>
</asp:Repeater>
Contributor

einars commented Feb 6, 2013

Yes, there are no plans of supporting asp.net source code formatting at all.

@einars einars closed this Feb 6, 2013

czebe commented Jul 4, 2014

Our ASP code works fine with html beautify.
The only problem is that <%-- and <%@ tags get indented incorrectly. This can be easily solved by adding such special backend tags to the single_token definition list. It's strange that ?php is there, yet it's not possible to add ASP or other custom tags. Could this be refactored so that one could override this setting in the config object?

Contributor

bitwiseman commented Sep 12, 2014

Interesting point. We're having a discussion around template languages right now. I'm going to reopen this just so it is on the radar so we can re-address it when that discussion is complete.

@bitwiseman bitwiseman reopened this Sep 12, 2014

Contributor

bitwiseman commented Jun 16, 2015

This is an ancient issue. I'm going to close this. @czebe, @a3code (or anyone else interested) - If you like to see this fixed. Please add a comment giving some examples of input, expected output, and actual output.

@bitwiseman bitwiseman closed this Jun 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment