libreria para colorear codigo html
npm install paintcode
npm i codepaint
import ColorearHtml from './node_modules/paintcode/Paint.js'
new ColorearHtml();
<script type="module" >
import ColorearHtml from 'https://lionelstaricoff.github.io/paint-code/Paint.js';
new ColorearHtml();
<script>
<script type="module" >
import ColorearHtml from 'https://lionelstaricoff.github.io/paint-code/Paint.js';
new ColorearHtml('red','blue','black','yellow');
<script>
<script type="module" >
import ColorearHtml from 'https://lionelstaricoff.github.io/paint-code/Paint.js';
ColorearHtml.Builder()
.etiquetas('rgb(26, 76, 76)')
.background('#333')
.atributos('hsl(350, 100%, 88%)')
.letras('hwb(0 100% 0%)')
.build()
<script>
<script type="module" >
import ColorearHtml from 'https://lionelstaricoff.github.io/paint-code/Paint.js';
ColorearHtml.Builder()
.etiquetas(ColorearHtml.colores.naranja('90%'))
.background(ColorearHtml.colores.azul(.8))
.atributos(ColorearHtml.colores.negro())
.letras(ColorearHtml.colores.blanco())
.build()
<script>
<script type="module" >
import('https://lionelstaricoff.github.io/paint-code/Paint.js')
.then(module => module.default)
.then(data => {
globalThis.color = class colorearModule extends data{};
globalThis.color.Builder()
.etiquetas('blue')
.background('red')
.atributos('green')
.letras('black')
.build();
})
.catch(error => console.error(error));
<script>
<div class="innertext coloreartext">
<script type="module" >
const p = document.querySelector('.innertext')
p.innerText =;
<div id="doble_button">
<span> X </span>
<input type="button" value="Guardar_bbdd">
<input type="button" value="cargar_bbdd">
</div>
import('https://lionelstaricoff.github.io/paint-code/Paint.js')
.then(module => new module.ColorearHtmlInnerText( 'green','red','#333','white') )
<script>