Need help? Check out our Support site, then


The visual editor removes mi <pre> tags

  1. Hi all.

    When using [sourcecode language="somelang"] ... [/sourcecode] i want the large strings to get preserved. I haven't the CSS upgrade, so i am using

     tags around this codes to have the horizontal scroll bar. The problem is that it works fine for a moment, but when i go to use the VISUAL Editor the 
     tags gets removed automatically, i cant work like this. So i want to know if there is another or a correct way to do what i want. Also i want to know if i can have a VERTICAL scroll bar in a sourcecode snippet that is to big to be displayed all, i mean a limited size sourcecode block with horizontal & vertical scrolls. 
    
    Thanks, and sorry mi english
  2. oh, shit with the intepreted tags xD, here i come again:

    "Hi all.

    When using [sourcecode language="somelang"] ... [/sourcecode] i want the large strings to get preserved. I haven't the CSS upgrade, so i am using pre tags around this codes to have the horizontal scroll bar. The problem is that it works fine for a moment, but when i go to use the VISUAL Editor the pre tags gets removed automatically, i cant work like this. So i want to know if there is another or a correct way to do what i want. Also i want to know if i can have a VERTICAL scroll bar in a sourcecode snippet that is to big to be displayed all, i mean a limited size sourcecode block with horizontal & vertical scrolls.

    Thanks, and sorry mi english"

  3. Ok, i found a solution for one of mi problems, so i will response mi self:

    To have a horizontal scroll bar in long source code blocks, you nedd the property wraplines="false", for example:

    [sourcecode language="javascript" wraplines="false"]
    ...
    [/sourcecode]

    But what about the vertical scroll bar?, the most similar thing i found is a collapse="true" property, but is not exactly what i want.

  4. Thanks for your reply timethief.

    Yes, that link helped me for the most important problem i had. But for the vertical scroll bar, i havent found a property for that, the mos similar is:

    collapse (true/false) — If true, the code box will be collapsed when the page loads, requiring the visitor to click to expand it. Good for large code posts. Defaults to false.

    But is not what i want.

  5. As this is multiuser software it is possible that what you wish to accomplish may not be possible. Perhaps contacting Staff is the most expeditious way to get an answer. Here's the link > http://en.support.wordpress.com/contact/

  6. thank you again

  7. You're welcome. :)

Topic Closed

This topic has been closed to new replies.

About this Topic