No announcement yet.

Posted Source Code Losing Indentation/Formatting

  • Filter
  • Time
  • Show
Clear All
new posts

  • Posted Source Code Losing Indentation/Formatting

    I'm a bit behind actually posting information on this, but several have made me aware of the fact that pasted source code is losing it's formatting on here.

    I have reported this to vBulletin - and they are aware of and have acknowledged the bug, but have given no further feedback.

    If you will switch to source mode, and paste code in, and wrap the code in code tags there, it seems to retain formatting if you switch back from plaintext/source mode to the RTF editor. You can also write the entire post in plaintext mode - inserting code tags where needed and this should also work.

    This button is the source mode button:

    Click image for larger version

Name:	sourcemode.jpg
Views:	1347
Size:	643 Bytes
ID:	789626
    I will post updates as soon as I have them - but for now, to retain indentation of code, you will have to switch to source mode (plaintext) when posting prior to pasting in source code and wrap code tags there as needed.
    Adam Drake

  • #2
    I am apparently a bit behind on there being change with this issue in the forum software. If you paste code without first creating complete code tags, you will still lose indention/formatting, however, I have just been made aware that if you create complete code tags first and paste inside of this, it seems to retain formatting in the regular editor without switching to source mode now (and has for awhile).
    Adam Drake