Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2004, 03:13 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP formatting input text

I am having a news item in a multi line text box, Is there a way I can change fonts or underline or do bold, etc? Same as we have in this forum various formatting buttons on the top for Bold, Italicized, underline
 
Old June 9th, 2004, 04:09 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Well, you could look at the Snitz code, or do something like HTMLarea or this.

HTH,

Snib

<><
 
Old June 9th, 2004, 04:18 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I would have a look at the PEAR HTML_BBCodeParser package. The syntax for BBCode is slightly different from that found on P2P. But it's an already built solution! I've used this package, and it does have some limitations, but it's a great start.

http://pear.php.net/package/HTML_BBCodeParser

I also have a JS program that inserts bbcode like that found on P2P ported to PHP functions for flexibility, in fact mine is based on the Snitz code. Email me and I'll send you a copy of it.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting php with css Hylsan Pro PHP 3 December 25th, 2006 07:16 AM
Formatting a text box alantodd Access VBA 3 December 14th, 2004 05:59 PM
text formatting question dadoonan BOOK: Beginning ASP 3.0 1 November 15th, 2004 02:12 AM
MYSQL Query text Formatting yourcompadre Beginning PHP 1 May 12th, 2004 06:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.