Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jun 19, 2020
1 parent 59eb83b commit df95973
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 24 deletions.
29 changes: 15 additions & 14 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,7 @@
</wc-codemirror> -->

<!-- external -->
<!--<wc-codemirror src="sample.html"></wc-codemirror>-->

<!-- inline read-only="nocursor" -->
<wc-codemirror mode="javascript" readonly="nocursor">
<script type="wc-content">
function myGoodPerson(){
return "what can I do for you ?"
}

function wouldYouLikeAScriptTag(){
return "&lt;script&gt;&lt;/script&gt;"
}
</script>
</wc-codemirror>
<!--<wc-codemirror src="sample.txt"></wc-codemirror>-->

<!-- syntax-highlighting -->
<!-- <wc-codemirror mode="javascript"></wc-codemirror> -->
Expand All @@ -60,5 +47,19 @@
</script>
</wc-codemirror> -->

<!-- inline escape <script> -->
<!-- TODO: make this a test -->
<wc-codemirror mode="javascript">
<script type="wc-content">
function myGoodPerson(){
return "what can I do for you ?"
}

function wouldYouLikeAScriptTag(){
return "&lt;script&gt;&lt;/script&gt;"
}
</script>
</wc-codemirror>

</body>
</html>
2 changes: 1 addition & 1 deletion examples/cdn/basic.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/cdn/external-source.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/cdn/internal-source.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/cdn/syntax-highlighting.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/cdn/theming.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/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>
Expand Down
2 changes: 1 addition & 1 deletion examples/npm/basic.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>
<wc-codemirror>
Expand Down
2 changes: 1 addition & 1 deletion examples/npm/external-source.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/npm/internal-source.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion examples/npm/syntax-highlighting.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/index.js"></script>
<script type="module" src="node_modules/@vanillawc/wc-codemirror/mode/javascript/javascript.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/npm/theming.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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/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>
Expand Down

0 comments on commit df95973

Please sign in to comment.