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 posts - how can I indent?

Formatting posts - how can I indent?

Scheduled Pinned Locked Moved Site Bugs / Suggestions
questiontutorial
13 Posts 7 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.
  • M Michael Dunn

    This board uses HTML so you're seeing an artifact of how HTML works - consecutive spaces are collapsed into one space when rendered. Use the <pre> tag to override this:

    4 space indent
      6 space indent
    

    --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #4

    Works only on IE. Doesn't work on FF - FF shows your pre snippet with zero indentation, Mike. For FF, use pre tags and then use   for space

    M S 2 Replies Last reply
    0
    • N Nish Nishant

      Works only on IE. Doesn't work on FF - FF shows your pre snippet with zero indentation, Mike. For FF, use pre tags and then use   for space

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #5

      I remember this came up a few weeks ago, isn't that caused by a bug in the CSS that the forum uses? --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

      N S 2 Replies Last reply
      0
      • N normanS

        This is a formatting question, not a programming question! I was trying to post some pseudo-code on a programming forum, and I can not work out how to indent the different levels of the code. Spaces are shown when creating the message, but not in preview or once it is posted. This is not just for text marked as CODE - even if you try to indent a list, any leading spaces at the start of each line are discarded for display (but if you edit the post, the indenting is still there!) For example: Bottom level First indent (should have 4 leading spaces) Second indent (should have 8 leading spaces) I don't see anything in the posting FAQs to cover this - maybe it should be with the "Formatting" tags. Any suggestions?

        N Offline
        N Offline
        normanS
        wrote on last edited by
        #6

        Thanks to all (Mike, PJ, Nishant) for the suggestions - I have printed and will try them. How about adding a "Space" button in the formatting tools?

        1 Reply Last reply
        0
        • M Michael Dunn

          I remember this came up a few weeks ago, isn't that caused by a bug in the CSS that the forum uses? --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #7

          Michael Dunn wrote: I remember this came up a few weeks ago, isn't that caused by a bug in the CSS that the forum uses? Possibly - since I am sure FF renders pre tags correctly in normal cases.

          1 Reply Last reply
          0
          • M Michael Dunn

            I remember this came up a few weeks ago, isn't that caused by a bug in the CSS that the forum uses? --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

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

            Not the CSS - the HTML. CP has an unclosed font tag at the beginning of each message, and because of how FireFox deals with unclosed tags, and the styles in place on that specific tag, it breaks the behavior of <pre> in messages.

            Ave Shog9, CP-addicti te salutant! - K(arl), The Soapbox

            1 Reply Last reply
            0
            • N Nish Nishant

              Works only on IE. Doesn't work on FF - FF shows your pre snippet with zero indentation, Mike. For FF, use pre tags and then use   for space

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

              Firefox breaks because CP puts an unclosed <font> tag in the messages. To work around this, you can put a closing tag in yourself. So,

              this
              indentation
              works
              in
              firefox!

              My god, you're a genius! - Jörgen Sigvardsson, The Lounge

              A C 2 Replies Last reply
              0
              • S Shog9 0

                Firefox breaks because CP puts an unclosed <font> tag in the messages. To work around this, you can put a closing tag in yourself. So,

                this
                indentation
                works
                in
                firefox!

                My god, you're a genius! - Jörgen Sigvardsson, The Lounge

                A Offline
                A Offline
                Andy Brummer
                wrote on last edited by
                #10

                That's sweet X| You could go the standard IT route and have your script automatically add it in as a workaround... :laugh:


                I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                1 Reply Last reply
                0
                • S Shog9 0

                  Firefox breaks because CP puts an unclosed <font> tag in the messages. To work around this, you can put a closing tag in yourself. So,

                  this
                  indentation
                  works
                  in
                  firefox!

                  My god, you're a genius! - Jörgen Sigvardsson, The Lounge

                  C Offline
                  C Offline
                  Chris Maunder
                  wrote on last edited by
                  #11

                  This has been fixed. I know - I will do penance this weekend for my deriliction. cheers, Chris Maunder

                  S A 2 Replies Last reply
                  0
                  • C Chris Maunder

                    This has been fixed. I know - I will do penance this weekend for my deriliction. cheers, Chris Maunder

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

                    Chris Maunder wrote: This has been fixed. :)

                    Ave Shog9, CP-addicti te salutant! - K(arl), The Soapbox

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      This has been fixed. I know - I will do penance this weekend for my deriliction. cheers, Chris Maunder

                      A Offline
                      A Offline
                      Andy Brummer
                      wrote on last edited by
                      #13

                      Chris Maunder wrote: I know - I will do penance this weekend for my deriliction. We only expect you to be chained to the servers during the week. :-D And no sneaking away to watch the tour.


                      I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                      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