Skip to main content
pwillener
Legend
July 15, 2012
Question

<code> tags no longer working

  • July 15, 2012
  • 3 replies
  • 2239 views

I use html <code> tags sometimes when I want to instruct a user exactly what to type.

This used to be displayed in a monospace font like Courier New, with a white box around it.

No longer, now it just looks → like this

Also, code boxes used to display monospace fonts, but they do no longer either.  (They still have a white box around it.)

code line 1

  code line 2

    code line 3

XML and SQL code boxes still display monospace fonts, but Java and plain boxes don't.

I do not care so much about the code boxes, but the <code> tags should stand out.

    This topic has been closed for replies.

    3 replies

    TerriStone
    Adobe Employee
    Adobe Employee
    July 19, 2012

    Thanks, Pat! We've logged this bug.

    I'm new to bug-fixing process at Adobe, so I'm not sure how long it will take for the engineers to get through the log.

    mytaxsite
    Inspiring
    July 16, 2012

    Have you tried using <pre>your code goes here ....</pre>?  I use something like this:

    <pre class="jive_text_macro jive_macro_code" jivemacro="code" ___default_attr="plain"><p><code class="jive-code">code line 1

      code line 2

        code line 3

    <br /></code></p></pre>

    To get like this:

    code line 1   code line 2     code line 3

    Hope this helps.

    pwillener
    pwillenerAuthor
    Legend
    July 16, 2012

    mytaxsite.co.uk wrote:

    Have you tried using <pre>...</pre>?

    No, and I don't want to start changing my posting style with every skin update.  The main purpose of my post was to get the old (good) functionality back.

    Also, it is mainly the inline code (code embedded in text) that I want back, the code boxes work more or less.

    I can achieve that do a certain extent if I manually specify the font and background color, as the example below.

    Try typing the following into a Command Prompt ipconfig /flushdns and hit the Enter key.

    And it is a lot easier to just put a <code> tag around it than <span style="font-family: courier new,courier; background-color: white; font-weight: bold;"> - and I haven't even a box yet...

    Message was edited by: Pat Willener - heavily edited after losing half of the post during a posting error.

    pwillener
    pwillenerAuthor
    Legend
    July 15, 2012

    Looking at the page source for the above post, the <code> tags have completely been removed!

    John Hawkinson
    Inspiring
    July 15, 2012

    <code> is not a standard HTML tag. (BBcode has a [CODE] tag.)

    I'm pretty surprised to hear this ever worked! But it makes sense that Jive strips nonstandard tags. Doing so is good practice.

    You can use a properly css-formated <pre> tag...

    Edit: Fixed <code>/

     renderings messed up by email interface.

    pwillener
    pwillenerAuthor
    Legend
    July 16, 2012