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. Site Bugs / Suggestions
  4. Formatting of the 'pre' and 'code' tags

Formatting of the 'pre' and 'code' tags

Scheduled Pinned Locked Moved Site Bugs / Suggestions
comtoolsquestion
3 Posts 2 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.
  • B Offline
    B Offline
    Bob Stanneveld
    wrote on last edited by
    #1

    Hello, I don't know about anybody else, but I'm getting a little rattled because of the <pre> and <code> formatting tags. When those tags are used, the leading spaces and tabs are removed, as well as any newlines between code lines. IMHO it's better to let the leading spaces and tabs stay as well as the newlines. This makes the code look more like in the editor and reads more easy. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

    D 1 Reply Last reply
    0
    • B Bob Stanneveld

      Hello, I don't know about anybody else, but I'm getting a little rattled because of the <pre> and <code> formatting tags. When those tags are used, the leading spaces and tabs are removed, as well as any newlines between code lines. IMHO it's better to let the leading spaces and tabs stay as well as the newlines. This makes the code look more like in the editor and reads more easy. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      For me, I only use <code> with inline stuff this. I use <pre> for all else, and to keep the blank lines intact, just insert a space.


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      B 1 Reply Last reply
      0
      • D David Crow

        For me, I only use <code> with inline stuff this. I use <pre> for all else, and to keep the blank lines intact, just insert a space.


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        B Offline
        B Offline
        Bob Stanneveld
        wrote on last edited by
        #3

        Ah I see. It still removes the newlines if you don't insert spaces. Thanks for the information. :-D Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

        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