Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Text box and HTML

by bobdeath (Scribe)
on May 30, 2003 at 21:01 UTC ( [id://261945]=perlquestion: print w/replies, xml ) Need Help??

bobdeath has asked for the wisdom of the Perl Monks concerning the following question:

I am wanting to display formatted HTML in a text box, is this possible? If so, can anyone help me out?

Replies are listed 'Best First'.
Re: Text box and HTML
by theorbtwo (Prior) on May 30, 2003 at 22:18 UTC

    Use Tk::HTML, I think.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

(jeffa) Re: Text box and HTML
by jeffa (Bishop) on May 30, 2003 at 23:55 UTC
Re: Text box and HTML
by BrowserUk (Patriarch) on May 30, 2003 at 22:17 UTC

    You question is still a little ambiguous (to me anyway).

    Given the html

    <h3>Some heading.</h3><p>Some <i>controvesial</i> but <b>important</b> + text and a list</p><ol><li>This</li><li>That</li><li>and the other</ +li></ol>

    Do you want to see

    <h3>Some heading.</h3> <p>Some <i>controvesial</i> but <b>important</b> text and a list</p> <ol> <li>This</li> <li>That</li> <li>and the other</li> </ol>

    or


    Some heading.

    Some controvesial but important text and a list

    1. This
    2. That
    3. and the other

    Ie. Do you want to see formatted html or text formatted using html?

    The former would be fairly easy, the latter much harder depending upon how any tag types you wish to support? How about CSS? Jscript etc. etc.?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Re: Text box and HTML
by Aristotle (Chancellor) on May 30, 2003 at 21:09 UTC
    Depending on the definition of text box, it is or isn't, and we'll not be able to help until you give us that.

    Makeshifts last the longest.

Re: Text box and HTML
by bobdeath (Scribe) on May 30, 2003 at 21:11 UTC
    when I say text box I mean a Tk::Text.
      Maybe Tk::HTML is what you want? Or do you mean a WYSIWYG widget for HTML editing?

      Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://261945]
Approved by dorko
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-19 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found