ASP.NET As A Langauge?

CodeHighlighter for ASP.NET Forum

Posted 20 years ago by Shandy - Colombo, Sri Lanka
Avatar
Does codehighlighter support ASP.NET as a language?

e.g. I would actually like the following highlighted on a web page
<form runat="server" ID="Form1">
<% Literal1.text="<p>Welcome To Shandy's</p>" %>
<asp:Literal id="Literal1" runat="server"></asp:Literal>
<% Page.Response.Write("<p>Rock, Paper, Scissors</p>")%>
<p>
  Web Site Game
</p>
</form>
A mixture of HTML & ASP.NET (VB.NET)

I have tried HTML as a language and nothing appears. Am I just trying to do something codehighlighter is not designed for?

[ 06-19-2004: Message edited by: Shandy ]

Shandy
Microsoft VB MVP
vbCity Leader

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
My apologies for not replying sooner. We set up our forums to e-mail us when posts are made however the e-mails for this forum were never wired up so we never noticed new posts. <IMG SRC="smile.gif" border="0"> This is fixed now.

CodeHighlighter sure does support ASP.NET syntax. In fact, our HTML sample will highlight ASP directive tags. CodeHighlighter supports multiple languages being loaded at a time with transitions in between them so our HTML sample can highlight HTML along with in-line CSS, JScript, VBScript, and ASP blocks.


Actipro Software Support

Posted 19 years ago by Shandy - Colombo, Sri Lanka
Avatar
I did wonder why my post was never answered <IMG SRC="wink.gif" border="0"> I thought maybe it was just a really dumb question <IMG SRC="rolleyes.gif" border="0"> (Wouldn't be the first one I'd asked).

This is good news and I'll have a look at this control again. I must admit I dropped it when my question never got answered, which was shame as it looked quite promising.

Consider me back on board <IMG SRC="cool.gif" border="0">

Shandy
Microsoft VB MVP
vbCity Leader

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Welcome back! <IMG SRC="biggrin.gif" border="0">

Actually if you go to this URL and paste your sample code using the HTML language, you can see the ASP directives highlighted:
<A HREF="http://www.actiprosoftware.com/Products/DotNet/CodeHighlighter/PasteCode.aspx" TARGET=_blank>http://www.actiprosoftware.com/Products/DotNet/CodeHighlighter/PasteCode.aspx</A>


Actipro Software Support

The latest build of this product (v4.0.59) was released 13 years ago, which was after the last post in this thread.