• I am migrating my blog posts from another website. In the process of transfering code samples I rewrote all of my <textarea tags into <pre class=”lang:default decode:true”>. When I look at the post on my site it just looks like a normal formatted pre block. If I go into wordpress though and edit the post and update it (making no changes) the crayon highlighting now shows up on my page. What I can’t seem to understand is that the code seems to be exactly the same in the db (wp_posts.content) before and after an update.

    What am I missing?

    https://wordpress.org/plugins/crayon-syntax-highlighter/

Viewing 1 replies (of 1 total)
  • Thread Starter therealdanvega

    (@therealdanvega)

    When I view the source on a page that is working (after I just update the post in the admin) I see the following. So what flag in the db am I missing? Why does this not work the 1st time I view it.

    <!– Crayon Syntax Highlighter v2.6.8 –>

    <div id=”crayon-54772bd160481326341891″ class=”crayon-syntax crayon-theme-github crayon-font-monaco crayon-os-pc print-yes notranslate” data-settings=” minimize scroll-mouseover” style=” margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 20px !important;”>

    <div class=”crayon-toolbar” data-settings=” mouseover overlay hide delay” style=”font-size: 12px !important;height: 18px !important; line-height: 18px !important;”><span class=”crayon-title”></span>
    <div class=”crayon-tools” style=”font-size: 12px !important;height: 18px !important; line-height: 18px !important;”><div class=”crayon-button crayon-nums-button” title=”Toggle Line Numbers”><div class=”crayon-button-icon”></div></div><div class=”crayon-button crayon-plain-button” title=”Toggle Plain Code”><div class=”crayon-button-icon”></div></div><div class=”crayon-button crayon-wrap-button” title=”Toggle Line Wrap”><div class=”crayon-button-icon”></div></div><div class=”crayon-button crayon-expand-button” title=”Expand Code”><div class=”crayon-button-icon”></div></div><div class=”crayon-button crayon-copy-button” title=”Copy”><div class=”crayon-button-icon”></div></div><div class=”crayon-button crayon-popup-button” title=”Open Code In New Window”><div class=”crayon-button-icon”></div></div><span class=”crayon-language”>Java</span></div></div>
    <div class=”crayon-info” style=”min-height: 16.8px !important; line-height: 16.8px !important;”></div>
    <div class=”crayon-plain-wrap”><textarea wrap=”soft” class=”crayon-plain print-no” data-settings=”dblclick” readonly style=”-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 20px !important;”>

Viewing 1 replies (of 1 total)
  • The topic ‘Migrating from another blog’ is closed to new replies.