Re: [PATCH 1/6] docs: process code blocks similar to Markdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 25, 2013 at 08:49:04AM +0200, Claudio Bley wrote:
> Wrap pre-formatted example code in <code> elements. This works
> similar to Markdown[1] code blocks[2]:
> 
> Every line indented with at least 2 spaces is considered a code
> block and gets wrapped in <pre> and <code> tags.
> 
> Look at the documentation for e.g. virStreamSend for before-and-after
> effects.
> 
> [1] http://daringfireball.net/projects/markdown/
> [2] http://daringfireball.net/projects/markdown/syntax#precode
> 
> Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
> ---
>  docs/newapi.xsl |   96 ++++++++++++++++++++++++++++++++++++++++++-------------
>  1 file changed, 74 insertions(+), 22 deletions(-)

ACK, looks much nicer.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]