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. Codeblocks not working correctly???

Codeblocks not working correctly???

Scheduled Pinned Locked Moved Site Bugs / Suggestions
comquestion
5 Posts 5 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.
  • I Offline
    I Offline
    i00
    wrote on last edited by
    #1

    I have posted a few things recently and have noticed that the code blocks are stuffing up a bit recently .. have not noticed this behaviour previously ... check out this one for eg: My comment[^] ... it has put a phantom <pre> in there ??? and generally stuffed the whole thing up I cannot go and edit it because it is correct when I go to edit it :(... Has anyone else noticed this ?? Thanks, Kris

    Sander RosselS Mike HankeyM L OriginalGriffO 4 Replies Last reply
    0
    • I i00

      I have posted a few things recently and have noticed that the code blocks are stuffing up a bit recently .. have not noticed this behaviour previously ... check out this one for eg: My comment[^] ... it has put a phantom <pre> in there ??? and generally stuffed the whole thing up I cannot go and edit it because it is correct when I go to edit it :(... Has anyone else noticed this ?? Thanks, Kris

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #2

      Probably better to post that in bugs 'n' sugs[^] :)

      Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

      Regards, Sander

      1 Reply Last reply
      0
      • I i00

        I have posted a few things recently and have noticed that the code blocks are stuffing up a bit recently .. have not noticed this behaviour previously ... check out this one for eg: My comment[^] ... it has put a phantom <pre> in there ??? and generally stuffed the whole thing up I cannot go and edit it because it is correct when I go to edit it :(... Has anyone else noticed this ?? Thanks, Kris

        Mike HankeyM Offline
        Mike HankeyM Offline
        Mike Hankey
        wrote on last edited by
        #3

        I was evaluating codeblocks on RPi and was doing good for a while then started getting a phantom error and could never resolve it so gave it up.

        New version: WinHeist Version
        You didn't fall from the stupid tree you got dragged through the whole dumbass forest.

        1 Reply Last reply
        0
        • I i00

          I have posted a few things recently and have noticed that the code blocks are stuffing up a bit recently .. have not noticed this behaviour previously ... check out this one for eg: My comment[^] ... it has put a phantom <pre> in there ??? and generally stuffed the whole thing up I cannot go and edit it because it is correct when I go to edit it :(... Has anyone else noticed this ?? Thanks, Kris

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Yes, I have come across this occasionally. It is something to do with the way CP guesses that some text is trying to use markdown. But, as suggested, you should report this sort of thing in Bugs'n'Sugs.

          1 Reply Last reply
          0
          • I i00

            I have posted a few things recently and have noticed that the code blocks are stuffing up a bit recently .. have not noticed this behaviour previously ... check out this one for eg: My comment[^] ... it has put a phantom <pre> in there ??? and generally stuffed the whole thing up I cannot go and edit it because it is correct when I go to edit it :(... Has anyone else noticed this ?? Thanks, Kris

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            It's Markdown - it does that when you have a double blank in a code block:

            if (a == b)

            DoSomething();
            else

            DoSomethingElse();

            It looks ok in the preview, but it stuffs it when posted. It also removes doubled back slashes: \\ in favour of a single one from time to time. Needless to say, it won't do it this time, just to be annoying... Even if it's disabled, it still does it from time to time.

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            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