Skip navigation
This discussion is archived
Currently Being Moderated

<code> tags no longer working

Jul 15, 2012 1:04 AM

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.

 
Replies
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Jul 15, 2012 6:37 PM   in reply to Pat Willener

    <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>/[CODE] renderings messed up by email interface.

     
    |
    Mark as:
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Jul 15, 2012 6:36 PM   in reply to Pat Willener

    Oof. The email interface did horrible things to my message, not sure if it was intelligble (I've fixed it).

     

    And beyond that, I stand corrected! You're right, HTML does have a <CODE> tag. I was just wrong. It was even there in HTML2...

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 15, 2012 8:15 PM   in reply to Pat Willener

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 19, 2012 9:31 AM   in reply to Pat Willener

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)