Skip to:
Content
Pages
Categories
Search
Top
Bottom

Code backtick bug


  • Arlo
    Member

    @arlo

    If I post code with the <code> tag it works fine, but if I use the backticks, ” ` “, it munges the code like this:

    <pre><code> [garbage] </code></pre>

    Oddly, if I go in and edit a post having used the “code” tag, it changes them to backticks.

    Ideas?

Viewing 8 replies - 1 through 8 (of 8 total)

  • fel64
    Member

    @fel64

    What do you mean? Backticks wraps text in bothpre and code tags?

    Not sure of the effects of code in standard XHTML, could be styled pretty easily … but perhaps it’s just easiest to use both pre and code?


    Arlo
    Member

    @arlo

    What I mean is, when I wrap text in backticks, it actually converts it to <pre><code> and removes the contents, replacing it with a random character, like an “n” or whatever.

    I want to be able to just use backticks for code, but I can’t. That’s the problem.

    Edit: Here’s an example. I created a post that looks like this (swapping a backtick for “[backtick]” so it won’t get eaten:

    [backtick]test[backtick]

    What it spit out is this (swapping parens for brackets so it wont get eaten):

    (pre)(code)s`

    (/code) `

    I still have this problem. Anyone?

    You have the allow images plugin installed, don’t you?

    If my guess is right, turning it off will make backticks work again. But that may not be worth it to you.

    Try my plugin: http://www.livibetter.com/it/topic/plugin-html-tag-attributes-validator

    It supports Image <img>, YouTube and Google Video embedding.

    Fel -yup, that was apparently the problem

    Livi- and that plugin works without borking code. Thanks!

    livibetter link is dead :(


    _ck_
    Participant

    @_ck_

    It’s archived here:

    http://code.google.com/p/llbbsc/wiki/HTMLTagAttributesValidatorPlugin

    http://web.archive.org/web/20071227175025/http://www.livibetter.com/it/topic/plugin-html-tag-attributes-validator

    http://llbbsc.googlecode.com/svn/trunk/bbPress/HTMLTagAttributesValidator/HTMLTagAttributesValidator.php

    That’s actually a fairly decent plugin, too bad it’s not in the extend section.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar