Browse Source

Highlight.

master
安正超 10 years ago
parent
commit
61255dee13
  1. 6
      README.md

6
README.md

@ -50,21 +50,26 @@
Bower install : Bower install :
```shell
bower install editor.md bower install editor.md
```
#### Usages #### Usages
HTML: HTML:
```html
<link rel="stylesheet" href="editormd.min.css" /> <link rel="stylesheet" href="editormd.min.css" />
<div id="editormd"> <div id="editormd">
<textarea style="display:none;">### Hello world!</textarea> <textarea style="display:none;">### Hello world!</textarea>
</div> </div>
```
> Tip: Editor.md can auto append `<textarea>` tag; > Tip: Editor.md can auto append `<textarea>` tag;
javascript: javascript:
```html
<script src="jquery.min.js"></script> <script src="jquery.min.js"></script>
<script src="editormd.min.js"></script> <script src="editormd.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
@ -82,6 +87,7 @@ javascript:
*/ */
}); });
</script> </script>
```
Using modular script loader : Using modular script loader :

Loading…
Cancel
Save