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. Web Development
  3. Oddness that I never noticed before

Oddness that I never noticed before

Scheduled Pinned Locked Moved Web Development
helpwpfxml
3 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
    Ray Cassick
    wrote on last edited by
    #1

    Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:

    So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:

      -->
    

    Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:

    It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:

    L D 2 Replies Last reply
    0
    • R Ray Cassick

      Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:

      So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:

        -->
      

      Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:

      It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:

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

      It isn't the editor - it is the XML specification that deems it not possible to have -- within a comment. I agree, it is a PITA

      ___________________________________________ .\\axxx (That's an 'M')

      1 Reply Last reply
      0
      • R Ray Cassick

        Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:

        So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:

          -->
        

        Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:

        It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:

        D Offline
        D Offline
        Dalek Dave
        wrote on last edited by
        #3

        That is very well spotted, I must admit I had never noticed it before either.

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

        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