1 Attachment(s)
Text To HTML Express V1.0
Hi this is a little project I made tonight after wanting to convert some of my Visual Basic code to html, anyway the program, allows you to convert plain text set a title, page colour, text back colour and four-color, you can also change the font properties. Hope you find it useful comments and suggestions welcome.
http://i48.tinypic.com/2uti8up.png
Re: Text To HTML Express V1.0
Interesting little program you have here. I do have a suggestion for you, make the Page BackColor and the Text area BackColor the same.
Also, if you have your app target the Full 4.0 Framework you can reference System.Web.dll in the project's references. Then you can replace this code:
vb Code:
Dim Buff As String = Source
Buff = Replace(Buff, "&", "&")
Buff = Replace(Buff, "<", "<")
Buff = Replace(Buff, ">", ">")
Buff = Replace(Buff, ControlChars.Quote, """)
'Append buff to string builder.
sb.Append(Buff)
With this:
vb Code:
'Dim Buff As String = Source
'Buff = Replace(Buff, "&", "&")
'Buff = Replace(Buff, "<", "<")
'Buff = Replace(Buff, ">", ">")
'Buff = Replace(Buff, ControlChars.Quote, """)
'Append buff to string builder.
'sb.Append(Buff)
sb.Append(System.Web.HttpUtility.HtmlEncode(Source))
Re: Text To HTML Express V1.0
Thanks for the info I have a go at adding that for next version.