From 4ddb84f109136a7395df7dae104c87eb20532d5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uli=20K=C3=B6hler?= Date: Wed, 19 Dec 2012 01:35:36 +0100 Subject: [PATCH] Add markdown syntax highlighting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1