You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have examples that demonstrate how to use different languages. To keep the code simple, use inline source.
Each example should demonstrate
which css/js imports are required
provide copy/pasteable source to help users get started
Here's what the examples for JavaScript would look like
/examples/cdn/language-javascript.html
<!DOCTYPE html><html><head><scripttype="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-codemirror/index.js"></script></head><body><wc-codemirrormode="javascript"><scripttype="wc-content">functionmyGoodPerson(){return"what can I do for you ?"}</script></wc-codemirror></body></html>
/examples/npm/language-javascript.html
<!DOCTYPE html><html><head><scripttype="module" src="node_modules/@vanillawc/wc-codemirror/index.js"></script></head><body><wc-codemirrormode="javascript"><scripttype="wc-content">functionmyGoodPerson(){return"what can I do for you ?"}</script></wc-codemirror></body></html>
The text was updated successfully, but these errors were encountered:
It would be useful to have examples that demonstrate how to use different languages. To keep the code simple, use inline source.
Each example should demonstrate
Here's what the examples for JavaScript would look like
/examples/cdn/language-javascript.html
/examples/npm/language-javascript.html
The text was updated successfully, but these errors were encountered: