Announcement

Collapse
No announcement yet.

How to preserve blank lines in posted code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mike Doty
    replied
    Use same technique to expand tab stops?

    How about expanding tab stops?
    For some reason I've had postings expand correctly.
    Does the number of positions make a difference?

    Appears I was accidently starting with (/code), sorry.
    Last edited by Mike Doty; 29 Dec 2008, 02:58 PM.

    Leave a comment:


  • Arie Verheul
    replied
    Thanks

    As simple as that. Thanks !

    Arie Verheul

    Leave a comment:


  • Roger Garstang
    replied
    He meant going to, pasting from works. To keep the blank lines in your code when making a message, make sure thare is something on the line as just the CrLf are ignored. Usually I put at least 1 space on all blank lines then they will show up.

    Leave a comment:


  • Marco Pontello
    replied
    Try quoting the message, and then cutting from the quoted code part.

    Bye!

    Leave a comment:


  • Arie Verheul
    started a topic How to preserve blank lines in posted code

    How to preserve blank lines in posted code

    When transferring code to the PB forum editor with copy and paste, the code tags prevent the editor to remove the indentation, but they do not prevent the removal of blank lines.

    As blank lines often serve to separate blocks of code, this removal is usually not desirable and reduces the clarity of the code.
    Although it is possible to manually reinsert the blank lines, this is not a practical solution for larger sections of code.
    Does anyone have special tips or tricks to prevent the removal of blank lines when pasting code into the editor ?

    Arie Verheul
Working...
X