ext;
        let text = textarea.innerHTML;

        for (let key in regexes){
            let reg = regexes[key];
            let wrap = reg.wrap || "";
            text = text.replace(reg.reg,'<span class="' + reg.style + '">'+wrap+'$1'+wrap+'</span>');
        }

        editor.innerHTML = text;
    }


</script>