Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettify doesn't highlight asp.net tags #166

Open
GoogleCodeExporter opened this issue Jan 14, 2016 · 1 comment
Open

prettify doesn't highlight asp.net tags #166

GoogleCodeExporter opened this issue Jan 14, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I use google-code-prettify as my syntax highlighter, but i have a problem with 
asp.net tags, prettify doesn't recognize it, so code like this:

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
       <asp:Button ID="SubmitButton" 
                   runat="server" 
                   Text="partial postback" 
                   onclick="SubmitButton_Click" />

      <a href="#" id="clientClick"><span>jQuery</span></a>
     </ContentTemplate>
    </asp:UpdatePanel>

is ignored.

I can see that prettify is working because i see the css style applied to the 
pre tag, but it seems that it is unable to recognize the asp.net tags, the only 
thing i see is the button, but as regular button, not as code snippet. 

Original issue reported on code.google.com by [email protected] on 14 Aug 2011 at 3:47

@GoogleCodeExporter
Copy link
Author

I see the attached.  Is that similar to what you see?  If so, could you be more 
specific about what is wrong?

I used the HTML


<pre class="prettyprint lang-html" id="asptags">
<asp:ScriptManager ID="ScriptManager1" runat="server">
  </asp:ScriptManager>
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
      <asp:Button ID="SubmitButton" 
                  runat="server" 
                  Text="partial postback" 
                  onclick="SubmitButton_Click" />

      <a href="#" id="clientClick"><span>jQuery</span></a>
    </ContentTemplate>
  </asp:UpdatePanel>
</asp:ScriptManager>
</pre>

Original comment by [email protected] on 30 Mar 2012 at 6:34

Attachments:

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

No branches or pull requests

1 participant