use 5.008;
use strict;
use warnings;
{
package Syntax::Highlight::JSON2;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '0.003';
use MooX::Struct -retain, -rw,
Feature =
intf "<span class=\"json_%s\">%s</span>", lc $_[0]->TYPE, encode_entities($_[0]->spelling)
};
*{Whitespace . "::TO_HTML"} = sub { $_[0]->spelling };
}
our %STYLE = (
json_brace => 'col
0;font-weight:bold',
json_bracket => 'color:#990000;font-weight:bold',
json_punctuation => 'color:#990000;font-weight:bold',
json_string => 'color:#cc00cc',
json_keyword => 'color
rt.cpan.org/Dist/Display.html?Queue=Syntax-Highlight-RDF>.
=head1 SEE ALSO
L<Syntax::Highlight::JSON2>,
L<Syntax::Highlight::RDF>.
=head1 AUTHOR
Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 CO
return "Syntax::Highlight::XML"->new;
};
$hint =~ m{json}i and do {
require Syntax::Highlight::JSON2;
return "Syntax::Highlight::JSON2"->new;
};
$hint =~ m{(ttl|turtle)}i and retur
s yet)
=item *
SPARQL Update 1.1 (but not property paths yet)
=item *
JSON - intended for RDF/JSON and SPARQL Results JSON, but just generic highlighting
=item *
XML - intended for RDF/XML and S
rt.cpan.org/Dist/Display.html?Queue=Syntax-Highlight-RDF>.
=head1 SEE ALSO
L<Syntax::Highlight::JSON2>,
L<Syntax::Highlight::XML>.
L<PPI::HTML>,
L<Syntax::Highlight::Engine::Kate>.
L<RDF::Trine>,