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. Fix the PRE tag styles, please.

Fix the PRE tag styles, please.

Scheduled Pinned Locked Moved Site Bugs / Suggestions
wpfcommcphelptutorial
2 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.
  • G Offline
    G Offline
    Grimolfr
    wrote on last edited by
    #1

    When you use <PRE> tags to wrap code blocks in messages, the stylesheet used to display the code removes all blank lines, which in many cases makes the code sample difficult to follow because you lose the "break" between natural logical process sets. Can we fix this, please? It should only be a minor tweak to one stylesheet entry. Example below, there should be a blank line before each comment:

    // Declare working variable
    int c

    // Assuming parameters are A and B, calculate c
    c = A + B

    // Return the sum
    return c


    Grim

    (aka Toby)

    MCDBA, MCSD, MCP+SB

    Need a Second Life?[^]

    SELECT * FROM user WHERE clue IS NOT NULL GO

    (0 row(s) affected)

    S 1 Reply Last reply
    0
    • G Grimolfr

      When you use <PRE> tags to wrap code blocks in messages, the stylesheet used to display the code removes all blank lines, which in many cases makes the code sample difficult to follow because you lose the "break" between natural logical process sets. Can we fix this, please? It should only be a minor tweak to one stylesheet entry. Example below, there should be a blank line before each comment:

      // Declare working variable
      int c

      // Assuming parameters are A and B, calculate c
      c = A + B

      // Return the sum
      return c


      Grim

      (aka Toby)

      MCDBA, MCSD, MCP+SB

      Need a Second Life?[^]

      SELECT * FROM user WHERE clue IS NOT NULL GO

      (0 row(s) affected)

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      Looks fine to me (in FireFox). If i remember right, this is an IE bug - just do like the rest of us, and throw a space in with each blank line while silently cursing Microsoft.
      You**'re one microscopic cog** in his catastrophic plan...

      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