Skip to content

Commit 5cb98cf

Browse files
committed
Add syntax highlighting to readme
1 parent ae452e4 commit 5cb98cf

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,22 @@ Please refer to the [manual] for the full API documentation and examples.
3131
* ... and much more!
3232

3333
## Example
34-
35-
<textarea id="textarea" rows="1"></textarea>
36-
37-
<script type="text/javascript">
38-
$('#textarea').textext({
39-
plugins : 'tags prompt focus autocomplete ajax arrow',
40-
tagsItems : [ 'Basic', 'JavaScript', 'PHP', 'Scala' ],
41-
prompt : 'Add one...',
42-
ajax : {
43-
url : '/manual/examples/data.json',
44-
dataType : 'json',
45-
cacheResults : true
46-
}
47-
});
48-
</script>
34+
```html
35+
<textarea id="textarea" rows="1"></textarea>
36+
37+
<script type="text/javascript">
38+
$('#textarea').textext({
39+
plugins : 'tags prompt focus autocomplete ajax arrow',
40+
tagsItems : [ 'Basic', 'JavaScript', 'PHP', 'Scala' ],
41+
prompt : 'Add one...',
42+
ajax : {
43+
url : '/manual/examples/data.json',
44+
dataType : 'json',
45+
cacheResults : true
46+
}
47+
});
48+
</script>
49+
```
4950

5051
## How To Use
5152

0 commit comments

Comments
 (0)