Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

add syntax highlighting to search.cpan.org

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 example
Octocat-spinner-32 html
Octocat-spinner-32 js
Octocat-spinner-32 README
README
Git repository: https://github.com/mstratman/cpan-syntax

cpan-syntax is a collection of files and snippets to add syntax
highlighting to search.cpan.org

DEPENDENCIES
------------
(all except jQuery itself have been included in this repository):
* jQuery: http://jquery.com/
* SHJS: http://shjs.sourceforge.net/
* jquery.styleswitch.mlklc.js:
  https://github.com/molokoloco/FRAMEWORK/tree/master/jquery.plugins
* jquery.cookie.js: https://github.com/carhartl/jquery-cookie

INSTALLATION
------------
* Upload the js/* and css/* files.
* Include the contents of html/select.html somewhere on the page.
  e.g. in the footer
* Include the contents of html/head.html in the header. Change paths as necessary
* Add class="sh_perl" to any markup that represents code.

EXAMPLE
-------
Look at example/Multiplex.html for an example.  Grep for "ADD THIS" to see the added html.

LICENSE
-------
Please see the included or linked software distributions listed above for 
their corresponding licenses.

css/sh_cpan.css is a modified version of a theme from SHJS, and subject
to the licensing of SHJS.

html/*.html were assembled for use in search.cpan.org and are released into the
public domain.

example/* simply applies this collection of files to an example module
from the CPAN, and styled with the markup and CSS from search.cpan.org, and
everything in this directory is copyright its respective owners.
Something went wrong with that request. Please try again.