Skip to content

Commit

Permalink
Add Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed May 29, 2020
1 parent b335ea0 commit eeb54e3
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.github/
.vscode/
dev/
examples/
*.tgz
11 changes: 11 additions & 0 deletions examples/cdn/basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror></wc-code-mirror>

</body>
</html>
11 changes: 11 additions & 0 deletions examples/cdn/external-source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror src="sample.txt"></wc-code-mirror>

</body>
</html>
12 changes: 12 additions & 0 deletions examples/cdn/syntax-highlighting.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
</head>
<body>

<wc-codemirror mode="javascript"></wc-code-mirror>

</body>
</html>
13 changes: 13 additions & 0 deletions examples/cdn/theming.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/theme/monokai.css">
</head>
<body>

<wc-codemirror mode="javascript" theme="monokai"></wc-code-mirror>

</body>
</html>
11 changes: 11 additions & 0 deletions examples/npm/basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror></wc-code-mirror>

</body>
</html>
11 changes: 11 additions & 0 deletions examples/npm/external-source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script>
</head>
<body>

<wc-codemirror src="sample.txt"></wc-code-mirror>

</body>
</html>
12 changes: 12 additions & 0 deletions examples/npm/syntax-highlighting.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
</head>
<body>

<wc-codemirror mode="javascript"></wc-code-mirror>

</body>
</html>
13 changes: 13 additions & 0 deletions examples/npm/theming.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
<link rel="stylesheet" href="node_modules/@vanillawc/wc-codemirror/theme/monokai.css">
</head>
<body>

<wc-codemirror mode="javascript" theme="monokai"></wc-code-mirror>

</body>
</html>

0 comments on commit eeb54e3

Please sign in to comment.