Karl Blessing
Programmer
At the moment I have:<br><br><FONT FACE=monospace><br>Private Sub Command1_Click()<br> Dim cmdObj As Object<br> Set cmdObj = CommonDialogAPI<br> With cmdObj<br> .DefaultExt = "*.htm*"<br> .DialogTitle = "Find an HTML"<br> .Filter = "HTML Files(*.htm, *.html)¦*.htm;*.html¦"<br> .InitDir = "C:\Windows\"<br> .ShowOpen<br> End With<br>If cmdObj.CancelError = False Then<br> Dim fs As New FileSystemObject<br> Dim HtmlF As TextStream<br> List1.Clear<br> Set HtmlF = fs.OpenTextFile(cmdObj.FileName, ForReading)<br> While Not HtmlF.AtEndOfStream<br> List1.AddItem HtmlF.ReadLine<br> Wend<br>End If<br><br>End Sub<br></font><br><br><br>this will basicaly just show me all the lines of the HTML file, what I want to get at is grabing every tag, it's start and end, and put the material inside each tag in between, the goal of this , is often I'm working on updating one of the client's website, and whoever the person was before me, used an editor that didnt same the source formating, so what I get is code from end to end, and would exceed the 2048 charaters a line, and so forth, so I spend about 30 mins (or more depending on the size of the file) just indenting out the entire file, then doing my update, good thing is, once I do it , I dont have to do it again. But it's gotten to those points that they'll be some new files that I havent gotten to before, and yep whenever an update is needed there I have to parse it out. so I want to make a VB app, that'll take an *.htm file, load it into the text stream, and spit it back with vbcrlf, and vbtabs, indenting it. I'll probally make a set of tags that will be indented, or carridged returned, I assuming I may have to use a custom collection. any ideas? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)