Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
Update to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Jul 12, 2011
1 parent 8d0e9d4 commit 2fcd7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Expand Up @@ -84,7 +84,7 @@ Both will output the following HTML:
## Usage
You need both the *markdown.php* and the *markdown_extended.php* files, but only needs to include *markdown_extended.php*.

```c
```PHP
require_once('markdown_extended.php');

// Convert markdown formatted text in $markdown to HTML
Expand All @@ -98,13 +98,13 @@ It is now possible to append default CSS classes to all tags of a specific type,

It is done through the second argument to the `MarkdownExtended` function:

```c
```PHP
$html = MarkdownExtended($markdown, array('tag' => 'css classes', 'anotherTag' => 'css classes'));
```

In the following example we add support for [Googles Javascript code prettifier](http://code.google.com/p/google-code-prettify/) by adding the *prettyprint* class to all `<pre>` tags.

```c
```PHP
// Always add a 'prettyprint' to <pre> elements
$html = MarkdownExtended($markdown, array('pre' => 'prettyprint'));
```

0 comments on commit 2fcd7ab

Please sign in to comment.