Página 1 de 1

[Novo] Add after

Enviado: 20 Jan 2026, 22:54
por Chico Gois
Uso do BBCode:

Código: Selecionar todos

[add-after]{TEXT}[/add-after]
Substituição do HTML:

Código: Selecionar todos

<div style="border-left: 4px solid #007bff; background: #e7f3ff; padding: 10px; margin: 10px 0; font-family: 'Courier New', monospace;">
    <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;">
        <strong style="color: #004085;">➕ ADICIONAR DEPOIS:</strong>
        <a href="#" onclick="selectCode(this); return false;" style="color: #004085; font-size: 0.8em; text-decoration: none; border: 1px solid #007bff; padding: 1px 5px; border-radius: 3px; background: #fff;">Selecionar tudo</a>
    </div>
    <pre style="margin: 0;"><code style="color: #444; white-space: pre-wrap; display: block; user-select: all;">{TEXT}</code></pre>
</div>

<script>
if (typeof selectCode !== 'function') {
    function selectCode(a) {
        var e = a.parentNode.parentNode.getElementsByTagName('code')[0];
        if (window.getSelection) {
            var s = window.getSelection();
            var r = document.createRange();
            r.selectNodeContents(e);
            s.removeAllRanges();
            s.addRange(r);
        } else if (document.selection) {
            var r = document.body.createTextRange();
            r.moveToElementText(e);
            r.select();
        }
    }
}
</script>
Linha de ajuda:

Código: Selecionar todos

[add-after]Seu texto aqui[/add-after]
Ex.:
➕ ADICIONAR DEPOIS:Selecionar tudo
phpinfo()