About

# About Tk::HyperText

Tk::HyperText is a ROText-derived text widget that renders HTML code.

# Why Render HTML?

The ability to render HTML code in a Tk widget is actually very useful. Instead of dealing with all the nitty gritty stuff with text widgets and such, you can just pipe plain old HTML code directly into the widget and it will render it automatically into something very pretty to look at, with very little extra time and effort on the programmer's side.

# Example

    my $html = $mw->Scrolled ("HyperText",
       -scrollbars => 'e',
       -wrap       => 'word',
    )->pack (-fill => 'both', -expand => 1);

    $html->loadString ("<b>Hello, <u>world!</u></b>");

# What Can Tk::HyperText Do?

See the Capabilities Demonstration page.

# How Does Tk::HyperText Work?

Tk::HyperText uses HTML::TokeParser to parse HTML code, converting it into Tk::Text tags for display in the text widget.