From: Uli Köhler Date: Wed, 19 Dec 2012 00:35:36 +0000 (+0100) Subject: Add markdown syntax highlighting X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4ddb84f109136a7395df7dae104c87eb20532d5d;p=clean-css.git Add markdown syntax highlighting --- diff --git a/README.md b/README.md index 3ffd53d9..4795d194 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,11 @@ Or even gzip the result at once: cat one.css two.css three.css | cleancss | gzip -9 -c > merged-minified-and-gzipped.css.gz ### How to use clean-css programmatically? ### - +```javascript var cleanCSS = require('clean-css'); var source = "a{font-weight:bold;}"; var minimized = cleanCSS.process(source); - +``` Process method accepts a hash as a second parameter (i.e. `cleanCSS.process(source, options)`), with the following options available: * `keepSpecialComments` - `*` for keeping all (default), `1` for keeping first one, `0` for removing all