|
-
May 27th, 2001, 11:14 AM
#1
Thread Starter
Junior Member
HTML Editor: does anyone want to give me a hand in making one?
Hi,
I am currently making a new freeware HTML Editor (not WYSISYG), and I was wondering if anyone would like to give me a hand in making it? If you do please e-mail me.
Also I would like to know what features webmasters would want in an editor. Please tell me your favourite features of your current editor, or new features that you would like to see. You can either post them here.
You can download an early version of the editor from:
http://web.ukonline.co.uk/tomh/htmled.zip
Or you look at a screenshot of v2 of the editor (which I've only just started, so its a bit plain at the moment):
http://web.ukonline.co.uk/tomh/htmledv2.gif
Cheers,
Tom
[email protected]
Last edited by Tom_H; May 28th, 2001 at 12:45 PM.
-
May 27th, 2001, 01:32 PM
#2
Junior Member
Hello Tom,
I have seen your program, and i have a question.
I'm also writing a small program and i need to save a HTML file as a text file. Can you please give me the piece of code you used in your program to convert HTML to TEXT ? I have tryed a lot, but i dont know how i can do this.
Thanks,
Adriaan.
([email protected])
-
May 27th, 2001, 01:49 PM
#3
Adriaan, I just posted on your thread, look.
-
May 27th, 2001, 01:50 PM
#4
I'de be glad to help, do you icq? pm me with info.
-
May 27th, 2001, 09:15 PM
#5
Lively Member
HTML
Hi!
I might be going on about something totally different here, Adriann, but if you want to save HTML source code as a .txt file, just change the extension in the common-dialog box to .txt instead of .htm or .html.
Let me know if that's what you wanted...
JD
-
May 28th, 2001, 12:21 PM
#6
Thread Starter
Junior Member
Just to say that my mail server has been down for a while, so if anybody has e-mailed me I wouldn't of got it, so could you please post it here or mail me at [email protected]. Thanks.
Adriaan, the code that I used to convert HTML to TEXT is:
Code:
in a module:
Option Explicit
Type tag
Text As String
start As Double
length As Double
End Type
Public Function StripHTML(HText$) As String
Dim T$
Dim is_tag%, Result$, i%
' Now scan the entire string to find the "<"'s and the ">"'s.
T$ = HText$
For i% = 1 To Len(T$)
Select Case Mid$(T$, i%, 1)
Case "<"
is_tag% = True
Case ">"
is_tag% = False
Case "&"
Dim nt$
nt = Mid$(T$, i%, 6)
If LCase(nt) = " " Then
Result$ = Result$ & " "
i = i + 5
ElseIf LCase(nt) = "©" Then
i = i + 5
Result$ = Result$ & "(C)"
ElseIf LCase(nt) = """ Then
i = i + 5
Result$ = Result$ & Chr$(34)
ElseIf Left$(LCase(nt), 5) = "&" Then
i = i + 4
Result$ = Result$ & "&"
ElseIf Left$(LCase(nt), 4) = "<" Then
i = i + 3
Result$ = Result$ & "<"
ElseIf Left$(LCase(nt), 4) = ">" Then
i = i + 3
Result$ = Result$ & ">"
End If
Case Else
If Not is_tag% Then Result$ = Result$ & Mid$(T$, i%, 1)
End Select
Next
StripHTML = Result$
End Function
in the form:
Private Sub mnuToolsConvertHtml2Txt_Click()
On Error Resume Next
rchEditor.Visible = False
Screen.MousePointer = vbHourglass
rchEditor.Text = StripHTML(rchEditor.Text)
mnuEditSelectAll_Click
rchEditor.SelColor = vbBlack
rchEditor.Visible = True
Screen.MousePointer = vbNormal
frmEditor.SetFocus
End Sub
Private Sub mnuEditSelectAll_Click()
rchEditor.SelStart = 0
rchEditor.SelLength = Len(rchEditor.Text)
End Sub
You'll probably have to adjust this a bit for your use.
rsitogp I will mail you tonight with the info.
Cheers,
Tom
-
May 28th, 2001, 04:12 PM
#7
PowerPoster
Thats a cool editor. Maybe one thing you could do is have like tabs so that you could very quickly switch between two different files.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
May 29th, 2001, 05:02 AM
#8
Junior Member
Thanks to all.
The code works great, thanks.
-
May 30th, 2001, 02:50 PM
#9
Thread Starter
Junior Member
Does anybody else want to help???
Also if anybody has e-mailed me already, can you please send it again but this time to [email protected] because I am having problems with my other account at the moment.
Thanks,
Tom
-
Jul 20th, 2001, 04:09 AM
#10
New Member
Ehm... I'd like to help, too
Hi, sorry that I answered that late, but I was not online at vb-world.net for years, so I never checked this forums, too. If you still need help, contact me.
-
Jul 20th, 2001, 10:34 AM
#11
PowerPoster
They probably finished or gave up by now
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Nov 14th, 2001, 06:05 PM
#12
Thread Starter
Junior Member
no we havn't finished or gave up, actually things are going great! its just i havn't checked this thread for ages, sorry! Heartly i have emailed you, thanks for offering your help and i hope that you're still interested! anyone else will be welcome to join with my little project (i'll try and check this thread more often!) 
cheers,
Tom
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|