
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
google-code-prettify
Advanced tools
Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/
Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/
via Bower
bower install google-code-prettify
or Yeoman
yeoman install google-code-prettify
The prettify script is AMD compatible and can be used modularly. Here is an example of it in an AMD module:
define(['jquery', 'prettify'], function($, prettify){
var code = null;
$('pre').addClass('prettyprint').each(function(idx, el){
code = el.firstChild;
code.innerHTML = prettify.prettyPrintOne(code.innerHTML);
})
);
});
This 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:
// using RequireJS
require.config({
prettify: 'bower_components/google-code-prettify/prettify'
});
// using curl.js
curl.config({
prettify: 'bower_components/google-code-prettify/prettify'
});
Or it may just be used in a global context like the following:
(function(){
$('pre').addClass('prettyprint');
prettyPrint();
})();
More information can be found in the original README.html
FAQs
Direct port of svn into git from http://google-code-prettify.googlecode.com/svn/trunk/
The npm package google-code-prettify receives a total of 3,734 weekly downloads. As such, google-code-prettify popularity was classified as popular.
We found that google-code-prettify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.