# man > CGI::Pretty(3pm)

## NAME
    [CGI::Pretty](https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3APretty/markdown) - module to produce nicely formatted HTML code

[CGI::Pretty](https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3APretty/markdown) IS DEPRECATED
    It will be removed from the CGI distribution in a future release, so you should no longer use it
    and remove it from any code that currently uses it.

    For now it has been reduced to a shell to prevent your code breaking, but the "pretty" functions
    will no longer output "pretty" HTML.

## Alternatives
    [HTML::HTML5::Parser](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AHTML5%3A%3AParser/markdown) + [HTML::HTML5::Writer](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AHTML5%3A%3AWriter/markdown) + [XML::LibXML::PrettyPrint](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3APrettyPrint/markdown):

        print [HTML::HTML5::Writer](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AHTML5%3A%3AWriter/markdown)->new(
            start_tags => 'force',
            end_tags   => 'force',
        )->document(
            [XML::LibXML::PrettyPrint](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3APrettyPrint/markdown)->new_for_html( indent_string => "\t" )
            ->pretty_print(
                [HTML::HTML5::Parser](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AHTML5%3A%3AParser/markdown)->new->parse_string( $html_string )
            )
        );

    [Marpa::R2::HTML](https://www.chedong.com/phpMan.php/perldoc/Marpa%3A%3AR2%3A%3AHTML/markdown) (see the html_fmt script for examples)

    [HTML::Tidy](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3ATidy/markdown)

    [HTML::Parser](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AParser/markdown)

