views:

75

answers:

4

i am working on a site which has dynamic NEWS page... currently when ever i post some news its plain text... i want it to be formatted for various reasons...

the thing is i want a post editor like Stackoverflow (the one we use to post our answers)....

i don't want code sample but i want the following things in it

  • text formatting... bold,italic
  • hyperlinks
  • images
  • bullets

and a preview of what the post is going to look like

i don't know any jQuery or AJAX... just HTML, PHP ,CSS, Javascript... but necessity is the motivation for learning...

any help... maybe some tutorials... what i need to learn & some sample code\example\projects...

+4  A: 

The StackOverflow editor makes use of a markup called MarkDown, of which there are various implementations for many languages. In fact, the one in use here is open source, MarkDown Sharp.

Jorge Israel Peña
i need write a code for one and put it in my website
Junaid Saeed
yeah, I think you do
Jorge Israel Peña
got it.........
Junaid Saeed
A: 

There are many such editors , one simple one which will do all the tasks you want is Tiny Mce

kantu
maybe this will be sufficient for you to understand... you saw that editor when you were writing this *** answer... how to code one just like it...
Junaid Saeed
+1  A: 

do a search here at SO for wysiwyg . also maybe take a look at wysihat

My personal favorite for this kind of thing is CKEditor

Scott Evernden
is it anything like stackoverflow's post editor
Junaid Saeed
Well yes it is 'like' SO's editor. mentioned elsewhere the fact that SO uses WMD editor. And if that's all you need look ther. CKEditor is certainly way more feature rich... and provides full HTML editing of fonts, tables, images, flash - quite a lot more (as does Tiny_MCE and others) .. You mentioned NEWS wwhich i know (from my own project experience) usually needs richer formatting and capability that what SO has here
Scott Evernden
+5  A: 

StackOverflow uses the WMD Editor. If you want the exact same editor as what you see on this page, WMD is the one to go for.

Rowlf