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. Article Writing
  4. XAML in an article

XAML in an article

Scheduled Pinned Locked Moved Article Writing
questionwpfcomxml
6 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.
  • J Offline
    J Offline
    Jan van den Baard
    wrote on last edited by
    #1

    I am using A Code Project Article Editor with Live Preview [^] to create an article. Now I want to include some XAML code in the article text. However simply copying and pasting the XAML between <pre lang="XML"></pre> tags does not seem to do it in the mentioned editor (obviously). My question is will the codeproject submission process handle this for me or do I need to "pre-format" the XAML before submission? My guess would be that this is handled for me since creating a XML pre tag while posting this question seems to convert the XML for me in the preview but better be safe than sorry I guess... Thanks in advance. - Jan

    We are the all singing, all dancing crap of the world. - Tyler Durden

    C 1 Reply Last reply
    0
    • J Jan van den Baard

      I am using A Code Project Article Editor with Live Preview [^] to create an article. Now I want to include some XAML code in the article text. However simply copying and pasting the XAML between <pre lang="XML"></pre> tags does not seem to do it in the mentioned editor (obviously). My question is will the codeproject submission process handle this for me or do I need to "pre-format" the XAML before submission? My guess would be that this is handled for me since creating a XML pre tag while posting this question seems to convert the XML for me in the preview but better be safe than sorry I guess... Thanks in advance. - Jan

      We are the all singing, all dancing crap of the world. - Tyler Durden

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

      Pasting XAML within a <pre lang="XML" block should do it. What's not working when you do it?

      J 1 Reply Last reply
      0
      • C Chris Maunder

        Pasting XAML within a <pre lang="XML" block should do it. What's not working when you do it?

        J Offline
        J Offline
        Jan van den Baard
        wrote on last edited by
        #3

        Actually this does set my mind at ease. I was just making sure because when using the tool I mentioned in the original post I only see an empty block in the preview. A shortcoming of the tool I guess. I was nog referring to the online article editor. Thank you for anwsering my question.

        We are the all singing, all dancing crap of the world. - Tyler Durden

        P 1 Reply Last reply
        0
        • J Jan van den Baard

          Actually this does set my mind at ease. I was just making sure because when using the tool I mentioned in the original post I only see an empty block in the preview. A shortcoming of the tool I guess. I was nog referring to the online article editor. Thank you for anwsering my question.

          We are the all singing, all dancing crap of the world. - Tyler Durden

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Have you encoded your XAML so that the < and > characters actually appear as < and > characters inside the edit windows? If you haven't, they will be interpreted as invalid HTML.

          J 1 Reply Last reply
          0
          • P Pete OHanlon

            Have you encoded your XAML so that the < and > characters actually appear as < and > characters inside the edit windows? If you haven't, they will be interpreted as invalid HTML.

            J Offline
            J Offline
            Jan van den Baard
            wrote on last edited by
            #5

            I have done so in parts of the article text but was hoping to avoid having to do this in the pre sections. Judging from the anwser Chris gave me I do not have to format the Xaml located within a <pre lang="XML"> section. I will ofcourse make sure before I actually submit.

            We are the all singing, all dancing crap of the world. - Tyler Durden

            P 1 Reply Last reply
            0
            • J Jan van den Baard

              I have done so in parts of the article text but was hoping to avoid having to do this in the pre sections. Judging from the anwser Chris gave me I do not have to format the Xaml located within a <pre lang="XML"> section. I will ofcourse make sure before I actually submit.

              We are the all singing, all dancing crap of the world. - Tyler Durden

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              You do have to encode the XAML tags in the pre sections. I have done this many times.

              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