colorer / Colorer-schemes

Syntax and color schemes for colorer library
31 stars 25 forks source link

Embedded CSS/JS are colored incorrectly inside Smarty PHP Templates #131

Closed unxed closed 7 months ago

unxed commented 2 years ago

Снимок экрана в 2020-10-11 23-07-07

Code sample:

{include file="html_head.tpl"}
{include file="header.tpl"}

<script src="//{$domain}/lib/lightbox/js/lightbox.js"></script>
<link href="//{$domain}/lib/lightbox/css/lightbox.css" rel="stylesheet" />

<style>
    .put-text {
        text-decoration: underline;
        cursor: pointer;
    }
</style>

<script>
    $(document).ready(function() { 

        $('.put-text').on('click', function(e) {
            $(e.target).parent().parent().find('.comment').val($(e.target).html());
        });

        {*
        $("#appeals-table").tablesorter(
            {
                headers: {
                    0: { sorter: false },
                    5: { sorter: false },
                    6: { sorter: false }
                }
            }
        );
        *}

        $('.monitor').on('click', function(e) {
unxed commented 2 years ago

Added a PR with a fix for that behavior. With it, everything is colored fine:

Снимок экрана в 2020-10-11 23-10-09

ctapmex commented 7 months ago

there are so many tickets for one problem. let's continue in #75. by the way, https://github.com/colorer/Colorer-schemes/pull/132 is closed for some reason.

unxed commented 7 months ago

Just for history reasons: fixed in 1ef8c8cfc2487a91fff300111638dc5f82f94ddc