[libvirt] [PATCH v3 11/13] docs: syntax highlight code blocks using SHJS

Eric Blake eblake at redhat.com
Wed Feb 6 17:16:46 UTC 2013


On 01/30/2013 08:38 AM, Claudio Bley wrote:
> Add minimized CSS and Javascript files of SHJS
> (http://shjs.sourceforge.net/) required for highlighting C code.
> 
> Call sh_highlightDocument() in onload event handler.
> 
> Since the new files are generated by a minifier tool, exclude
> them from being checked by syntax-check for proper newlines at EOF.
> 
> Signed-off-by: Claudio Bley <cbley at av-test.de>
> ---
>  cfg.mk                |    2 +-
>  docs/newapi.xsl       |    2 +-
>  docs/page.xsl         |    5 ++++-
>  docs/sh_c.min.js      |    1 +
>  docs/sh_emacs.min.css |    1 +
>  docs/sh_main.min.js   |    4 ++++
>  6 files changed, 12 insertions(+), 3 deletions(-)
>  create mode 100644 docs/sh_c.min.js
>  create mode 100644 docs/sh_emacs.min.css
>  create mode 100644 docs/sh_main.min.js

I'm still not convinced whether to take these patches, but if we do, you
are missing Makefile.am changes that ensure the new files are shipped in
the tarball and installed as part of 'make install'.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130206/787aaa74/attachment-0001.sig>


More information about the libvir-list mailing list