Jump to content

I want to make something *like* a html editor...

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1
NfC_Kitten

NfC_Kitten

    Newbie

  • Members
  • Pip
  • 8 posts
Ok, so as the "descriptive" says I want to build something that is like a html editor, not one, just like one...

Now I would get into details about what I want to program but I think that may be irrelevent as I know what it is that I want help with...

What I have in my mind;

I need to be able to take a paragraph or more that the user has inputed into a rich text box, split it into it's individual words and if sertain tags are found, change the output to resemble what the tags are for... Ok so that explination sucks so I will use what I can to explain a little better...

Say I want to have something that I can type a post into, like this message editor that surrounds my message as I type it and after pressing a button, it will give me a preview of what my text would look like after I post it on the site... but I want to do it without ether being online or posting to the intended site...

Now what I know I would need to do is take the message or lines of text, single out tags and then format them.

So for a visual example;

[B ]Hello[/B ] there people, [I ]how[/I ] are we today[COLOR="Red" ]?[/COLOR ]

First I need to seperate the words so I can run a routine on each word so that if they do happen to have a tag around it I can format that one word with the corisponding effect.

So after this the program will show in another text box the output with formating added so it will look like this;

Hello there people, how are we today?

What I need to know is A: If what I want is possable and if yes, B: How would I acheive this effect or at least what would I need to read to find out about how to do it...

Also I would like to appologise for my very bad spelling, my Firefox Dictionary ain't seeming to work at the moment and I am hopped up on energy drink so my brain is only half working... So once again Sorry!

And in advance I would like to thank anyone that can help me with this, If I have broken a rule (Of which I did read but my interpritation of said rules may be different to the way they actualy were intended to be) or if this is such a noobish (And yes I mean it in the insulting sort of way) thing to ask, any help will be muchly appreciated!

Edited by NfC_Kitten, 11 July 2009 - 04:34 AM.
Cos I am an idiot?!


#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
A) Yes, very possible. What you described above is bbcode but for an HTML editor I would just use HTML. You can then use an HTML component to "preview" the HTML.

B) Are you using VB6 or VB.NET?

#3
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
You could just add an webbrowser object which you add the source text to, or is there a special reason you want it in a textbox?

Edit: I think I maybe understood it wrong after reading Jordan's post :S

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
A webbrowser object would be perfect for previewing, though. Didn't you write a tutorial about that?

#5
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
No I didn't. I thought he wanted somewthing to preview, but It seems like I understood it wrong.

#6
NfC_Kitten

NfC_Kitten

    Newbie

  • Members
  • Pip
  • 8 posts
well, basicly I want an offline program to format posts for a web site, so basicly yeah, I was thinking about using a web form but I think that would ruin the overall offlineyness but then again, can I dynamicly generate a web page with VB?

*Edit

Jordan said:

A) Yes, very possible. What you described above is bbcode but for an HTML editor I would just use HTML. You can then use an HTML component to "preview" the HTML.

B) Are you using VB6 or VB.NET?

I am using... VB.net i belive, it's the one from VS2008EE

Edited by NfC_Kitten, 11 July 2009 - 07:37 AM.
Additional answer


#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Are you talking about something like Kompozer and BlueGriffon?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
NfC_Kitten

NfC_Kitten

    Newbie

  • Members
  • Pip
  • 8 posts
No, not really, it's hard for me to explain, so i will go into the gritty details,

There is a website that I am a member of, they use BBcode and people there seem to like really nice formatting in major posts and stuff so what I want to have is a program that I can do all my formatting in, know what it would look like with out having to post it somewhere online for people to see before hand...

Is this a better description?

_______________________________________________________

Ok, so I read Jordan's post again (I am still tired, it's now 11:52pm and I have been up since 10 this morning) and after having read it a few times over and over again I have realised yes, basicly I want to code a "BBCode" Editor...

Edited by NfC_Kitten, 11 July 2009 - 07:54 AM.
Stupidity again!


#9
Vswe

Vswe

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 9,552 posts
You want to preview it offline?

#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I would get XAMPP or WAMP server and phpBB. Then you could post it to a "local" server to preview. Alternatively, most of BBcode is a simple substitution.
[ B ] becomes <B>
[ /B ] becomes </B>
etc.

Also check out these resources.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#11
NfC_Kitten

NfC_Kitten

    Newbie

  • Members
  • Pip
  • 8 posts

Vswe said:

You want to preview it offline?

Well I want it to have offline and online capabilitys but I thought I would start off simple with offline first and then move on after I get that down...

WingedPanther said:

I would get XAMPP or WAMP server and phpBB. Then you could post it to a "local" server to preview. Alternatively, most of BBcode is a simple substitution.

[ B ] becomes <B>

[ /B ] becomes </B>

etc.


Also check out these resources.

I used to use an offline PhpBB board but converting the tags so they conform to the custom tags the site I want it for uses was too much of a hassle and I could never get it just right and also I want it so I can possably share it with other users and not everyone is smart enough or can use IIS or whatever web service they can get there hands on so that they can use it too... but thanks for the link to the resources, it will come in real handy later when I start to do the conversions...

#12
NfC_Kitten

NfC_Kitten

    Newbie

  • Members
  • Pip
  • 8 posts
Ok, so I have been researching the idea of a BBcode editor and have decided that maybe I should use a web thingy... So, now what I want to know is, can VB dynamicly create a webpage or is this out of scope for it? If yes can you give me any links to where I can find out how to do this or at least set me on the right path...