Support » Plugin: Prettify Code Syntax » Line numbers not showing

  • Resolved ifmeister

    (@ifmeister)


    Hi. First of all, great plugin! Everything seems to be working well for me except line numbers. I’ve used the following snippet in the text editor:

    <pre class="prettyprint"><code class="language-html" line="1">
    // Code here
    <a href="url">sample text</a>
    </code></pre>

    Is there something wrong with my syntax?

    Please help!

    http://wordpress.org/extend/plugins/prettify-code-syntax/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Issue solved! There was indeed a problem with my syntax. The proper way of doing it is:

    <pre class="prettyprint linenums"><code class="language-html">
    // Code here
    <a href="url">sample text</a>
    </code></pre>

    Use a pre class of “linenums”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Line numbers not showing’ is closed to new replies.