| Perl6-Pod documentation | Contained in the Perl6-Pod distribution. |
Perl6::Pod::FormattingCode::K - keyboard input
Do you want additional personnel details? K<y>
The K<> formatting code specifies that the contained text is
keyboard input; that is: something that a user might type in. Such
content would typically be rendered in a fixed-width font (preferably a
different font from that used for the T<> formatting code) or with
<kbd>...</kbd> tags. The contents of a K<> code are always space-preserved. The K<> code is the
inline equivalent of the =input block.
K<test>
Render xhtml:
<kbd>test</kbd>
http://zag.ru/perl6-pod/S26.html, Perldoc Pod to HTML converter: http://zag.ru/perl6-pod/, Perl6::Pod::Lib
Zahatski Aliaksandr, <zag@cpan.org>
Copyright (C) 2009-2011 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
| Perl6-Pod documentation | Contained in the Perl6-Pod distribution. |
#=============================================================================== # # DESCRIPTION: keyboard input # # AUTHOR: Aliaksandr P. Zahatski, <zahatski@gmail.com> #=============================================================================== #$Id$ package Perl6::Pod::FormattingCode::K;
use warnings; use strict; use Data::Dumper; use Perl6::Pod::FormattingCode; use base 'Perl6::Pod::FormattingCode';
sub to_xhtml { my ( $self, $parser, @in ) = @_; my @content = $parser->_make_events(@in); return $parser->mk_element('kbd')->add_content(@content); }
sub to_docbook { my ( $self, $parser, @in ) = @_; my @content = $parser->_make_events(@in); $parser->mk_element('userinput')->add_content(@content); } 1; __END__