Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. How to post code in a message

How to post code in a message

Scheduled Pinned Locked Moved IT & Infrastructure
tutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RenniePet
    wrote on last edited by
    #1

    Is it possible to post code in a message without all of the leading blanks being ignored so everything is left-justified? Thanks. Rennie

    realJSOPR 1 Reply Last reply
    0
    • R RenniePet

      Is it possible to post code in a message without all of the leading blanks being ignored so everything is left-justified? Thanks. Rennie

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Use the <pre> tag.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      R 1 Reply Last reply
      0
      • realJSOPR realJSOP

        Use the <pre> tag.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        R Offline
        R Offline
        RenniePet
        wrote on last edited by
        #3

        Thanks. As a side-effect, two blank lines get collapsed to zero blank lines. Is there any way to avoid that? (One blank line is maintained as one blank line.) Rennie Edit: Never mind, it's something else. It's completely empty lines that are being collapsed. A single blank character prevents it.

        D 1 Reply Last reply
        0
        • R RenniePet

          Thanks. As a side-effect, two blank lines get collapsed to zero blank lines. Is there any way to avoid that? (One blank line is maintained as one blank line.) Rennie Edit: Never mind, it's something else. It's completely empty lines that are being collapsed. A single blank character prevents it.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Put a space character in the blank lines.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups