Skip to content

Commit 78de8c0

Browse files
Merge pull request #106 from mbrukman/patch-1
Add syntax highlighting to README [skip ci]
2 parents 2543d2e + e3e2fb8 commit 78de8c0

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
textures.js
2-
========
1+
# textures.js
32

4-
Textures.js is a javascript library for creating SVG patterns.
5-
Made on top of **d3.js**, it is designed for data visualization.
3+
Textures.js is a JavaScript library for creating SVG patterns.
4+
Made on top of [**d3.js**](https://d3js.org/), it is designed for data visualization.
65

76
Read more on http://riccardoscalco.github.io/textures/.
87

@@ -16,25 +15,25 @@ npm install textures
1615

1716
Import `textures.js` from NPM with:
1817

19-
```
18+
```js
2019
import textures from 'textures';
2120
```
2221

23-
You can also use`textures.js` in your html page with a `<script>` tag, dowloading `textures.js` in a local folder
22+
You can also use `textures.js` in your HTML page with a `<script>` tag by downloading `textures.js` to a local folder:
2423

25-
```
24+
```html
2625
<script src="path/to/textures.js"></script>
2726
```
2827

29-
or using the Unpkg CDN network
28+
or by using the Unpkg CDN network:
3029

31-
```
30+
```html
3231
<script src="https://unpkg.com/textures@1.2.0/dist/textures.js"></script>
3332
```
3433

35-
Then `textures.js` can be used alongside with `d3` with:
34+
Then `textures.js` can be used alongside `d3` with:
3635

37-
```
36+
```js
3837
const svg = d3
3938
.select('#example')
4039
.append("svg");

0 commit comments

Comments
 (0)