HTML API
See original GitHub issueFirst off, thanks for making this awesome plugin!
I suggest not requiring JavaScript for basic usage. Lots of people aren’t comfortable with it.
Have a codeflask
class that when people use it, these elements are automatically made into editors.
Similarly, default language can just be defined on an ancestor, like <body class="language-css">
: This is just basic Prism.js functionality, you don’t even need to implement it yourself 😃 Just include it in the docs.
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Web APIs - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >Web APIs - MDN Web Docs - Mozilla
Below is a list of all the APIs and interfaces (object types) that you may be ... HTML DOM · HTML Drag and...
Read more >HTML APIs: What They Are And How To Design A Good One
HTML APIs usually consist of certain class and attribute patterns that can be used on existing HTML. With Web Components, even custom element ......
Read more >Explain API's Available in HTML5 - GeeksforGeeks
API stands for Application Programming Interface. An API is a set of pre-built programs that can be used with the help of JavaScript....
Read more >HTML APIs in Depth - Medium
It's called the curse of knowledge. When beginners of HTML/CSS struggle to write code in JavaScript, that's where HTML5 APIs come to their ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will implement it tomorrow.
I think it could be done using WebComponents, for example creating a new “editor” or “codeflask” tag. For the default languaje, is better to use data attributes.