Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Button Bar Plugin - Code Markdown

edited May 2015 in Vanilla 2.0 - 2.3

Hey dudes!
Why when I select CODE formatting in the buttons bar when I am posting only is written<code> instead of <pre><code>. Do you know how can I fix that? I'm using prettify and I need the pre tag before code. I've checked the .js of the plugin and I found somthing like that

case 'code': var multiline = $(TextArea).hasSelection().indexOf('\n') >= 0; if (multiline) { var thisOpts = $.extend(htmlOpts, { opentag:'<pre><code>', closetag:'', opener:'', closer:'', closeslice: '' }); $(TextArea).insertRoundTag('',thisOpts); } else { $(TextArea).insertRoundTag('code',htmlOpts); } break;

... any Idea or stable solution for making prettify easier (still more) ? thanksss!

Comments

Sign In or Register to comment.