Octavian,
If you wish to avoid WYSIWYG editors and stick with some thing ASCI-based, I can highly recommend Textile [1], which is distributed as part of a new PHP-based CMS called Textpattern [2].
Textile is a sort-of shorthand mark-up for converting ASCI to valid XHTML.
This is a paragraph with a line break, *strong* and _emphasised_ text.
* this is * an unordered * list
# this is # an ordered # list
|tables|are|easy|too| |tables|are|easy|too|
"Links":http://example.com are easy too!
There's a demo and lots more sample text on the Textism site [1], and you can get a copy of Textile in the (GPL) source of Textpattern.
[1] http://textism.com/tools/textile/ [2] http://textpattern.com/
Justin French
On 20/08/2004, at 3:14 PM, Octavian Rasnita wrote:
Hi all,
I would like to create a program that allow users to insert text into a
database, than that text to appear in a web page formatted as HTML.
It is simple to replace the end of line with <br />\n in order to format
that text as html, but I don't know how I could let the users to create
bulleted lists, tables, etc.
Lets say that the users are admins that I can trust, but they don't know
HTML at all, however, they want to insert a table, or a list, etc.
Are there any solutions for this? I am thinking to something like inserting <table> COL1##COL2##COL3 CEL1##CEL2##CEL3 </table>
...for the tables, or something like that, then to make the program transform this in a true table.
But maybe there are better solutions.
Thanks for any ideas.
Teddy
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- Justin French http://indent.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php