Skip to content

Commit

Permalink
Merge pull request #132 from Big-Shark/patch-1
Browse files Browse the repository at this point in the history
Add php highlight
  • Loading branch information
tijsverkoyen committed Apr 13, 2016
2 parents bb535b0 + b6ab7e6 commit f0eb80b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,21 @@ $ composer require tijsverkoyen/css-to-inline-styles

## Example

use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
```php
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;

// create instance
$cssToInlineStyles = new CssToInlineStyles();
// create instance
$cssToInlineStyles = new CssToInlineStyles();

$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');
$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');
$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');
$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');

// output
echo $cssToInlineStyles->convert(
$html,
$css
);
// output
echo $cssToInlineStyles->convert(
$html,
$css
);
```

## Known issues

Expand Down

0 comments on commit f0eb80b

Please sign in to comment.