XAML in an article
-
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
-
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
Pasting XAML within a <pre lang="XML" block should do it. What's not working when you do it?
-
Pasting XAML within a <pre lang="XML" block should do it. What's not working when you do it?
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
-
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
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.
-
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.
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
-
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
You do have to encode the XAML tags in the pre sections. I have done this many times.