Formatting VB code on blogengine.net

Topics: Business Logic Layer
Oct 8, 2009 at 10:10 AM

Hi All,

I am having trouble formatting my VB code block on a blog entry using the [code:vb] tag

The HTML on the blog is:

<p>First you need an event handler</p>
<p>[code:vb]</p>
<p>
Private Sub ContextMenuHandler_Click(ByVal sender As Object, ByVal e As System.EventArgs)<br />
    ' Do something when the user clicks on a node<br />
    ' Use the sender.tag to determine which menu item was clicked<br />
End Sub
</p>
<p>[/code]</p>

The result I get is here:

http://www.hamiltonit.co.uk/blog/post/VBNET-Programmatically-add-items-to-context-menu.aspx

What am I missing ?

Alternatively - are there any other ideas for entering code blocks (e.g. like the one codeplex uses ?) - I'd prefer something actually installed on my site rather than a link to an external service ?

Thanks

Steve

 

Coordinator
Oct 8, 2009 at 3:47 PM

You should be able to fix it as described here. I'll make sure this fix is in the next build.

 

Oct 14, 2009 at 10:01 AM

Thanks RTUR - this has fixed it

(It was line 108 though in my version)

Many Thanks

Steve