• I sometimes use the plugin without any difficulty. This time I however get interesting color changes. Did I do something wrong?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Soli

    (@allnull)

    Sorry, I didn’t get it.
    Which part of this page has the problem?
    And the color changed from what to what?

    Thread Starter gkoper

    (@gkoper)

    OK let me isolate the part. In HTML code it is

    <!– wp:paragraph –>
    <p>Vervolgens moet het bestand aan PRO-GEN bekend worden gemaakt met de <code class=”prettyprint”>RESTORE-optie (vanuit het hoofdscherm <code class=”prettyprint”>PRO-GEN Hulpprogrammas). </p>
    <!– /wp:paragraph –>

    and you can see the effect here:
    https://blog.gerkoper.nl/uncategorized/test/

    Hope you can find what it is,

    Ger

    Thread Starter gkoper

    (@gkoper)

    The code reads

    <!-- wp:paragraph -->
    <p>Vervolgens moet het bestand aan PRO-GEN bekend worden gemaakt met de <code class="prettyprint">RESTORE</code>-optie vanuit het hoofdscherm <code class="prettyprint">PRO-GEN Hulpprogrammas</code>. </p>
    <!-- /wp:paragraph -->

    Somthing with the message editor.

    Plugin Author Soli

    (@allnull)

    Sorry, I didn’t response sooner.

    code-prettify automatically detects the code language and how to highlight the keywords.

    It looks like code-prettify thinks “Hulpprogrammas” is a keyword in the code context and highlights it in purple.

    If you don’t like purple, you can customize it on “WP Code Prettify” setting page. Input following code into the textarea on that page:

    .prettyprint .typ {color: #FF0000;}

    This piece of CSS code will change the color of that word to red.

    Hope this info helpful.

    Thanks,

    Soli

    Thread Starter gkoper

    (@gkoper)

    Dear Soli,

    That worked, so far so good.

    Now I’d like all “prettified”text to be of the same color.

    Thanks in advance,

    Ger

    Thread Starter gkoper

    (@gkoper)

    OK, I found the solution following your suggestion.

    I looked up the GitHub entry and found all possible attributes.
    Added them to change the color to same.

    Thanks for the help,

    Ger

    Thread Starter gkoper

    (@gkoper)

    Arggggh, this could have been solved much quicker: just use <code> without class="prettyprint".

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Color changes’ is closed to new replies.