Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Change to triple-backtick code fences.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Aug 18, 2012
1 parent 8e037b7 commit dae8fee
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,31 @@ Platform.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1.5-

In a browser or Adobe AIR:

~~~ html
```html
<script src="platform.js"></script>
~~~
```

Via [npm](http://npmjs.org/):

~~~ bash
```bash
npm install platform
~~~
```

In [Node.js](http://nodejs.org/) and [RingoJS](http://ringojs.org/):

~~~ js
```js
var platform = require('platform');
~~~
```

In [Rhino](http://www.mozilla.org/rhino/):

~~~ js
```js
load('platform.js');
~~~
```

In an AMD loader like [RequireJS](http://requirejs.org/):

~~~ js
```js
require({
'paths': {
'platform': 'path/to/platform'
Expand All @@ -57,11 +57,11 @@ require({
['platform'], function(platform) {
console.log(platform.name);
});
~~~
```

Usage example:

~~~ js
```js
// on IE10 x86 platform preview running in IE7 compatibility mode on Windows 7 64 bit edition
platform.name; // 'IE'
platform.version; // '10.0'
Expand All @@ -85,7 +85,7 @@ info.version; // '11.52'
info.layout; // 'Presto'
info.os; // 'Mac OS X 10.7.2'
info.description; // 'Opera 11.52 (identifying as Firefox 4.0) on Mac OS X 10.7.2'
~~~
```

## Author

Expand Down
4 changes: 2 additions & 2 deletions vendor/docdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ For a list of upcoming features, check out our [roadmap](https://github.com/jdal

Usage example:

~~~ php
```php
require("docdown.php");

// generate Markdown
$markdown = docdown(array(
"path" => $filepath,
"url" => "https://github.com/username/project/blob/master/my.js"
));
~~~
```

## Author

Expand Down
2 changes: 1 addition & 1 deletion vendor/docdown/src/DocDown/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function getExample() {
preg_match('#\*\s*@example\s+([\s\S]*?)(?=\*\s\@[a-z]|\*/)#', $this->entry, $result);
if (count($result)) {
$result = trim(preg_replace('/(?:^|\n)\s*\* ?/', "\n", $result[1]));
$result = '~~~ ' . $this->lang . "\n" . $result . "\n~~~";
$result = '```' . $this->lang . "\n" . $result . "\n```";
}
return $result;
}
Expand Down
4 changes: 2 additions & 2 deletions vendor/qunit-clib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ QUnit CLIB has been tested in at least Node.js 0.4.8-0.8.6, Narwhal v0.3.2, Ring

## Usage

~~~ js
```js
(function(window) {

// use a single load function
Expand Down Expand Up @@ -43,7 +43,7 @@ QUnit CLIB has been tested in at least Node.js 0.4.8-0.8.6, Narwhal v0.3.2, Ring
QUnit.start();
}
}(typeof global == 'object' && global || this));
~~~
```

## Footnotes

Expand Down

0 comments on commit dae8fee

Please sign in to comment.