Page 1 of 2 12 LastLast
Results 1 to 40 of 73

Thread: HTML Editor

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    HTML Editor

    I am 13 years old, i started learning vb in school library and also bout some books.

    I decided to make a html editor. i made one that has basic functions, eg save,save as,open,preview in browser,print code,undo,redo. What else can i add. i was thinking of having a button that has html tags on. when u click on one it prints it. ii got stuck on making it. can you please help me?

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: HTML Editor

    Does it have Syntax Highlighting That would be nice to play around with teach you some string Manipulation functions, although you need a RichTextBox to add the colour since the normal text box doesn't support it.

    I'm not 100% on what you were unsure of? do you need help with printing?

    Pino

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    I am using a richtext box. Which i found is better than a normal text box. as then i could use the redo and undo fuctions. I am actually stuck on

    1) making tags highlighted
    2) making clickable tag. ie you cllick on a button and it prints the contents in the text box
    3) Have an instant preview tab.

    I am curently trying to make an ftp program for publishing
    Last edited by asgsoft; Feb 20th, 2005 at 07:23 AM.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    does anyone recon they could help me?

  5. #5
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Re: HTML Editor

    Search www.planetsourcecode.com they have a number of examples

  6. #6
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Some suggestions are:

    1) A list of HTML tags!
    2) Some javascripts and dhtml examples that user can add!
    3) Some HTML templates because many people doesn't know how to make HTML pages!
    4) As you said , a FTP feature, so someone who made his web site, then to publish it!

    and many many other features that will make end-user's life better!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  7. #7
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Re: HTML Editor

    Have some form of validation
    Either included (e.g HTML Tidy) or linking to the W3C validator
    http://validator.w3.org/

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    lets start step by step.
    1- i don't understand validation
    2-A list of HTML tags how to make them print their value in the txt box is the problem

    3- Some javascripts and dhtml examples that user can add easy but the problem is as before

    4-Some HTML templates because many people doesn't know how to make HTML pages! the program isn't a wysiwyg (what you see is what you get)

    5- As you said , a FTP feature, so someone who made his web site, then to publish it! finally it is working

    6- thanks for the link i didn't know it before

  9. #9
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367

    Re: HTML Editor

    syntax coloring
    Born to help others
    (If I've been helpful then please rate my post. Thanks)

    call me EJ or be slapped!

  10. #10
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    As i know you are using Rich Text Box, well...:
    1) Adding html tags:
    Have a list called "TList"
    VB Code:
    1. Public Sub AddTagsToList ()
    2. With TList
    3. .AddItem "<title></title>"
    4. .AddItem "<html></html>"
    5. .AddItem "<head></head>"
    6. End With
    7. End Sub
    8.  
    9. Private Sub Form_Load ()
    10. Call AddTagsToList
    11. End Sub
    12.  
    13. Private Sub TList_Click ()
    14. Form1.RTB.Text = Form1.RTB.Text & vbCrLf & TList.List(TList.ListIndex)
    15. End Sub

    This was a very easy example of Adding and using tags from a list!

    2) This could be done with the same way!

    3) The html templates will not be in WYSIWYG mode, just ready html code!

    4) FTP:

    5) html validation is some standards that W3 has made for html coding!If your html pages are validated then the pages are good coded!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    thanks alot for that

  12. #12
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Wink Re: HTML Editor

    That was only an example! If you want more then tell me to make you a sample project!

    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    you mean a fully working sample project then yes please. but i won't copy it. i will look at it to learnf from it

  14. #14
    Member MendyGreen's Avatar
    Join Date
    Dec 2004
    Location
    Baltimore, MD
    Posts
    56

    Re: HTML Editor

    I was going to do the same thing for my own benefit, but if youre going to put yours out ill keep mine in. Did you ever think about, maybe they down want to have to click to start a webpage every time. How about on the Load event it asks for the title, and the body color (in 16 or hex). I tried doing that before but I couldnt figure out how to make a break in the textbox, oh well maybe you know. Also it might be cool to have a splash screen.
    View the Msquared Technologies Web site.
    Every rule has an exception - including that one.
    How can a house burn up if its burning down
    Learn HTML in 1 day!

  15. #15
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    you mean a fully working sample project then yes please. but i won't copy it. i will look at it to learnf from it

    Ok, but please wait some hours to finish it! ... I will send it here as an attachment!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    i don't mind.

  17. #17
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Here is a simple html editor project!

    It has:
    1) HTML & ASP syntax coloring (simple mode)
    2) HTML tag adder (Not all tags, only some...because it is a sample)
    3) Wizard when you create a new web page!
    4) Load/Save Web Page

    I didn't have much time to do more! If you want more help on this then tell me...!

    Attached Files Attached Files
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    Very nice and useful but how come the tags when you click on them and then enter a alue the value doen't appear in the txtbox. Because that is what i was having trouble with.

    I love the syntax colouring. Just what i always wnated to know how to do. thank you very much

  19. #19
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Well, i can't understand what are you asking for!
    You can add a tag, like this:

    VB Code:
    1. Private Sub List1_Click ()
    2. If List1.List(List1.ListIndex) = "<b></b>" then
    3. RichTextBox1.SelStart = Len(RichTextBox1.Text)
    4. RichTextBox1.SelText = "<b></b>
    5. End If
    6.  
    7. If List1.List(List1.ListIndex) = "<i></i>" then
    8. RichTextBox1.SelStart = Len(RichTextBox1.Text)
    9. RichTextBox1.SelText = "<b></b>
    10. End If
    This is the same way for all tags!

    There is the advanced way, like <title></title> tag:
    VB Code:
    1. 'RTB = RichTextBox
    2. 'NF.PageTitle = Is a public variable, so you can handle html page's title
    3.  
    4. If STR = "<title></title>" Then
    5.     Dim m
    6.     m = InputBox("Please enter web pages title: ", "Enter title", NF.PageTitle)
    7.     If m <> "" Then
    8.         NF.PageTitle = m
    9.         Dim FS, FE, FV
    10.         FS = InStr(1, RTB.Text, "<title>", vbTextCompare)
    11.         If FS > 0 Then
    12.             RTB.SelStart = FS + 6
    13.             FE = InStr(1, RTB.Text, "</title>", vbTextCompare)
    14.             RTB.SelLength = FE - FS - 7
    15.             RTB.Text = Replace(RTB.Text, RTB.SelText, NF.PageTitle)
    16.         Else
    17.             RTB.SelStart = 0
    18.             RTB.SelText = "<title>" & NF.PageTitle & "</title>"
    19.         End If
    20.     Else
    21.         Exit Sub
    22.     End If
    23. End If

    If this not why you asked me for, then please explain to me, more!(because i don't understand much english)
    Last edited by DarkX_Greece; Feb 22nd, 2005 at 05:04 PM. Reason: A small problem with the syntax
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  20. #20
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: HTML Editor

    I found out that Firefox has an extension that checks html, so you don't have to be online to verify you work. Just a hint.

  21. #21
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: HTML Editor

    Attached is another, perhaps a bit more advanced, example. I origionally started this projects a few years back for my ex-girlfriend to learn HTML. It uses the DHTML control to create a WYSIWYG editor. Use it anyway you want.
    Attached Files Attached Files

  22. #22

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    Thanks but i am getting the error Cannot find project or library.

  23. #23
    Lively Member
    Join Date
    Nov 2004
    Location
    UK
    Posts
    80

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    Thanks but i am getting the error Cannot find project or library.
    Then u most probably got learning edition like me

  24. #24
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Any new feature for your HTML Editor asgsoft?

    Did my example help you?
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  25. #25
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    Thanks but i am getting the error Cannot find project or library.
    You might lack the DHTML Edit control. It's available for download, do a Google search for it.

  26. #26

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    Joacim Andersson ok thank you i will try and find it and download it.
    DarkX_Greece thank you very much for that,it is very useful
    CLibra i have vb6 enterprize edition

  27. #27
    Lively Member
    Join Date
    Nov 2004
    Location
    UK
    Posts
    80

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    CLibra i have vb6 enterprize edition
    I ONLY HAVE LEARNING

  28. #28
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: HTML Editor

    if you want some Ideas...

    Doqnload and look at Arachnophilia

    its been around a while...and its free...

    one really cool feature is... in the HTML right click on a color (Like #00000 etc...) a popup appears with colors to choose from and translates the color back to the code...
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  29. #29
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Yes, there is the way to download and run other html editor (trial or not) and try to make your own controls or vb code that looks like the other html editors!
    After a while, you will make your own things!
    Just start by looking other projects!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  30. #30

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    but does that count as cheating?? or will i get sued for it as it might be copyrighted?

  31. #31
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: HTML Editor

    as long as you don't use their code, or images, or controls, without their permission, then you will not get sued. are you planning on selling a lot of these? that's what really matters.

  32. #32
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    but does that count as cheating?? or will i get sued for it as it might be copyrighted?

    It is not cheating! Then, almost all programs, would be illegal!
    Just try to make them look like other controls! Not to use current...
    Trying to make your own code, isn't cheating or illegal!
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  33. #33

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    i am not planning on selling it at the moment,but if i think it is better than other ones in the market i might consider selling it to someone. do you have an idea on how to sell vb programs because i have no experiance on that field.

  34. #34
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: HTML Editor

    Well you obviously need a website to market your product. For payment you can use PayPal or any of the Gazillion Shareware marketing businesses on the Net.

  35. #35

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    i have a website, where can i get the marketing software from,i don't want paypal as you have to pay.

  36. #36
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    i have a website, where can i get the marketing software from,i don't want paypal as you have to pay.
    I'm sorry to say this but.... Welcome to the real world! You ALWAYS have to pay something! If you don't want to pay PayPal for whatever they charge you will still have to pay your bank for whatever they charge!

    So PayPal charge to much.... You want to setup a server of your own that accepts credit cards, and you want no one to charge you for the cost of having that?

    I know you will probably hate me for posting this but, just ask your own bank what they would charge you for this service.

  37. #37
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    i have a website, where can i get the marketing software from,i don't want paypal as you have to pay.
    Oh... You don't have to pay anything for a PayPal account....

  38. #38
    Lively Member UTGrim's Avatar
    Join Date
    Jan 2005
    Location
    Brazil
    Posts
    92

    Re: HTML Editor

    Hey, I'm also working on a HTML editor! It's not finished yet, but you can skim over the code and try to get some ideas. My code is kinda messy and I don't really comment much, sorry...

    Oh, and I didn't use the RTF box. I keep switching from Win98 comps to WinXP comps and the control versions are different.

    Hope it helps...
    Attached Files Attached Files

  39. #39

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: HTML Editor

    very nice indeed, did you know that the find doesn't work.

    Also can you pleeeeeeeeeeese say clearly how you did the clickable tags.

  40. #40
    Lively Member UTGrim's Avatar
    Join Date
    Jan 2005
    Location
    Brazil
    Posts
    92

    Re: HTML Editor

    Quote Originally Posted by asgsoft
    very nice indeed, did you know that the find doesn't work.

    Also can you pleeeeeeeeeeese say clearly how you did the clickable tags.
    Tons of things don't work yet. I'm still working on the program.

    If by clickable tags you mean the tags window, there is a file that contains the tags and their attributes (tags.txt). The program opens the file, decodes it, and displays the tags. The code is on frmTags. It's very messy and dodgy, I know.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width