{"_id":"google-code-prettify","_rev":"3291523","name":"google-code-prettify","description":"Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"mattdsteele","email":"orphum@gmail.com"}],"time":{"modified":"2024-05-30T03:08:17.000Z","created":"2016-01-28T14:51:03.927Z","1.0.5":"2016-08-12T02:32:21.443Z","1.0.4":"2016-08-11T03:35:39.412Z","1.0.1":"2016-01-28T14:51:03.927Z"},"users":{},"versions":{"1.0.5":{"name":"google-code-prettify","version":"1.0.5","dependencies":{},"gitHead":"5e0b27bba2583a386c08ead942bbf25418c28784","description":"Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/","_id":"google-code-prettify@1.0.5","scripts":{},"_shasum":"9f477f224dbfa62372e5ef803a7e157410400084","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"mattdsteele","email":"orphum@gmail.com"},"dist":{"shasum":"9f477f224dbfa62372e5ef803a7e157410400084","size":105746,"noattachment":false,"key":"/google-code-prettify/-/google-code-prettify-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/google-code-prettify/download/google-code-prettify-1.0.5.tgz"},"maintainers":[{"name":"mattdsteele","email":"orphum@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/google-code-prettify-1.0.5.tgz_1470969140166_0.503677194006741"},"directories":{},"publish_time":1470969141443,"_hasShrinkwrap":false,"_cnpm_publish_time":1470969141443,"_cnpmcore_publish_time":"2021-12-16T12:41:12.084Z"},"1.0.4":{"name":"google-code-prettify","version":"1.0.4","dependencies":{},"gitHead":"411ed142781130331a021a72981d03b2c70a2d49","description":"Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/","_id":"google-code-prettify@1.0.4","scripts":{},"_shasum":"24fbcc130a2f1de86e71180eb330d7ce211fdacf","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"mattdsteele","email":"orphum@gmail.com"},"dist":{"shasum":"24fbcc130a2f1de86e71180eb330d7ce211fdacf","size":105751,"noattachment":false,"key":"/google-code-prettify/-/google-code-prettify-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/google-code-prettify/download/google-code-prettify-1.0.4.tgz"},"maintainers":[{"name":"mattdsteele","email":"orphum@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/google-code-prettify-1.0.4.tgz_1470886537388_0.33354597399011254"},"directories":{},"publish_time":1470886539412,"_hasShrinkwrap":false,"_cnpm_publish_time":1470886539412,"_cnpmcore_publish_time":"2021-12-16T12:41:12.446Z"},"1.0.1":{"name":"google-code-prettify","version":"1.0.1","dependencies":{},"gitHead":"4c035ae80ace007f1804517c4e919bfaf7ea4532","description":"Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/","_id":"google-code-prettify@1.0.1","scripts":{},"_shasum":"72ed730414769db2ecc470f4ec413174ccb76327","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"mattdsteele","email":"orphum@gmail.com"},"dist":{"shasum":"72ed730414769db2ecc470f4ec413174ccb76327","size":105738,"noattachment":false,"key":"/google-code-prettify/-/google-code-prettify-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/google-code-prettify/download/google-code-prettify-1.0.1.tgz"},"maintainers":[{"name":"mattdsteele","email":"orphum@gmail.com"}],"directories":{},"publish_time":1453992663927,"_hasShrinkwrap":false,"_cnpm_publish_time":1453992663927,"_cnpmcore_publish_time":"2021-12-16T12:41:13.619Z"}},"readme":"# Google Code Prettify\n\nDirect port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/\n\n## Install\n\nvia [Bower](http://twitter.github.com/bower/)\n\n\tbower install google-code-prettify\n\nor [Yeoman](http://yeoman.io/)\n\n\tyeoman install google-code-prettify\n\n\n## Usage\n\nThe prettify script is AMD compatible and can be used modularly. Here is an example of it in an AMD module:\n\n```javascript\ndefine(['jquery', 'prettify'], function($, prettify){\n\tvar code = null;\n\t$('pre').addClass('prettyprint').each(function(idx, el){\n\t\t\tcode = el.firstChild;\n\t\t\tcode.innerHTML = prettify.prettyPrintOne(code.innerHTML);\n\t\t})\n\t);\n});\n```\n\nThis version of google-code-prettify defines an anonymous module, which is more flexible.  To allow your AMD loader to find google-code-prettify with a more convenient name, map a path to it as follows:\n\n```js\n// using RequireJS\nrequire.config({\n\tprettify: 'bower_components/google-code-prettify/prettify'\n});\n\n// using curl.js\ncurl.config({\n\tprettify: 'bower_components/google-code-prettify/prettify'\n});\n```\n\nOr it may just be used in a global context like the following:\n\n```javascript\n(function(){\n\t$('pre').addClass('prettyprint');\n\tprettyPrint();\n})();\n```\n\nMore information can be found in the original [README.html](http://google-code-prettify.googlecode.com/svn/trunk/README.html)","_attachments":{}}