The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

YAML::Tiny::Color - Dump YAML with color

VERSION

This document describes version 0.04 of YAML::Tiny::Color (from Perl distribution YAML-Tiny-Color), released on 2014-06-30.

SYNOPSIS

 use YAML::Tiny::Color;
 say Dump({your => "data"});

DESCRIPTION

This module dumps your data structure as YAML with color using ANSI escape sequences. To change the colors, see %theme in source code.

VARIABLES

$YAML::Tiny::Color::LineNumber => BOOL (default: 0)

Whether to include line numbers in dumps.

FUNCTIONS

Dump

Exported by default. Dump data as YAML. Die on errors.

FAQ

What about loading?

Use other modules like YAML::Tiny, YAML::Syck, YAML::XS.

ACKNOWLEDGEMENTS

YAML dumping code stolen from YAML::Tiny (1.51).

SEE ALSO

JSON::Color

At the time of this writing, none of syntax highlighting libraries on CPAN support YAML. For alternatives, you might want to take a look at Python's Pygments or Ruby's coderay.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/YAML-Tiny-Color.

SOURCE

Source repository is at https://github.com/sharyanto/perl-YAML-Tiny-Color.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=YAML-Tiny-Color

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.