
Hi I'm using vb.net and the problem that I am having is that the generated HTML code is only showing as one complete line and isnt showing seperate lines.
Here is code from some dummy app i was playing with before putting into my real app:[Modified at 09/24/2007 08:31 AM]
Here is code from some dummy app i was playing with before putting into my real app:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim engine As New ActiproSoftware.CodeHighlighter.CodeHighlighterEngine
Dim language As ActiproSoftware.SyntaxEditor.Addons.Dynamic.DynamicSyntaxLanguage
language = ActiproSoftware.SyntaxEditor.Addons.Dynamic.DynamicSyntaxLanguage.LoadFromXml("C:/Documents and Settings/cbragg/Desktop/CodeHighlighter/Languages/Lexers/ActiproSoftware.VBDotNet.xml", 0)
Dim strCode As String = TextBox1.Text
strCode = HttpUtility.HtmlEncode(strCode)
engine.OutliningImagesPath = "C:\Documents and Settings\cbragg\Desktop\CodeHighlighter\Images\OutliningIndicators\"
engine.OutliningEnabled = True
engine.SpacesInTabs = 4
engine.LineNumberMarginVisible = True
strCode = engine.GenerateHtmlInline("colin", strCode, language)
WebBrowser1.DocumentText = strCode
End Sub