Webcomponent code-block following open-wc recommendations
npm install @htmlplusplus/code-blockThis webcomponent follows the open-wc recommendation.
Web component that formats text to appear in a box similar to a code block in markdown, with optional copy functionality.
---
``bash`
npm i @htmlplusplus/code-block
#### HTML
`html
`
#### JavaScript / TypeScript
`JavaScript`
// import into an existing JS module / web component
import '@htmlplusplus/code-block/code-block.js';
---
`HTML
`
---
For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
---
`bash`
npm start
To run a local development server that serves the basic demo located in demo/index.html`