WordPress.org

Ready to get started?Download WordPress

Forums

Better WordPress Syntax Highlighter
extra paragraphs around inline-pre (3 posts)

  1. mampf
    Member
    Posted 2 years ago #

    Hi,

    I got this code:
    The filename <pre lang="bash" inline="yes">$file will be …

    Now what I see at the html page is this:

    <p>The filename
    <code class="bwp-syntax-inline"><span style="color: #007800;">$file</span></code>
    <p> will be …

    See that paragraphs? They're really freaking me out. I got a very hard line break instead of a inline highlight.

    http://wordpress.org/extend/plugins/better-wordpress-syntax-based-on-geshi/

  2. mampf
    Member
    Posted 2 years ago #

    I just double-checked it is

    • Not the theme (preview of multiple others used
    • Not any other plugin (deactivated every one
    • Not my code's fault (tested with CodeColorer successfully

    So what came to my mind: Could it be geshi gives you an extra line break, which will then be converted to a paragraph? Just a guess.

  3. Khang Minh
    Member
    Plugin Author

    Posted 2 years ago #

    Hi there,

    With a new approach for the next major release, I believe this bug will be fixed. For now I think you should use <code> for inline codes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic