|
Chris Maunder wrote: So you're looking to create a live website and you'd like that to be included in the article as an iFrame?
The other way around, I want to include the article on my Website.
Doesn't matter, I will talk to Sean.
Edit: Email sent.
Veni, vidi, caecus | Everything summarizes to Assembly code
modified 27-Jan-14 14:23pm.
|
|
|
|
|
Whenever you insert XML into a Q&A answer, it removes all capitalization. Since you don't have an XAML language type, using <pre lang="xml"> removes all the capitalization inside the tags.
This is a problem when posting answers about xml configuration files since the attributes inside an xml tag is case-sensitive. It doesn't allow the user to copy/paste XML/XAML from an answer into code.
See Convert this XAML in Code[^], I had posted the answer with XAML that has capitalized tags and attributes, but when submitting it turns it all lower case.
[Edit]
The preview at the bottom shows the code block is correct, with the proper capitalization, but after submitting the capitalization is removed. Choosing to "Improve Answer" shows that the text inside the edit box has the capitalization removed so something after submitting is transforming the text to lower case.
|
|
|
|
|
Ron Beyer wrote: removes all the capitalization inside the tags.
Let's try that:
<pre lang="xml">
<CapitalizedTag>Value</CapitalizedTag>
</pre>
Result:
<CapitalizedTag>Value</CapitalizedTag>
Strange, it doesn't remove the capitalization (perhaps because this is a message and not an answer).
EDIT: I found the reason!!!
Probably, you wrote something like this:
<pre lang="xml">
<CapitalizedTagHere>Value</CapitalizedTagHere>
</pre>
This will result in this (only in answers, in messages it gives a proper result):
<capitalizedtaghere>Value</capitalizedtaghere>
You need to change the < and > into the HTML entities < and > because otherwise, when posting an answer, the server thinks that your tags are real HTML tags, and removed the capitalization, but when rendering them, they are not real HTMl tags, so it will render the lowercase HTML tags as text. So that's why you need to use the HTML entities also in code blocks.
modified 25-Jan-14 6:18am.
|
|
|
|
|
So why does it correctly render in the preview, but get mangled after submit?
Shouldn't the system change everything between the pre tags into HTML-compatible stuff? I can only imagine what kind of giant PITA it would be to go through a 25+ line XML/XAML file and change every < > into its html escape code.
I thought that was the purpose of pre tags?
|
|
|
|
|
Ron Beyer wrote: So why does it correctly render in the preview, but get mangled after submit?
I don't know the internals of the Preview feature, so I actually have no idea.
Ron Beyer wrote: I can only imagine what kind of giant PITA it would be to go through a 25+ line XML/XAML file and change every < > into its html escape code
To avoid that, just choose "Encode HTML" when pasting your code, then it will automatically change < and > into its HTML entity.
|
|
|
|
|
I think I reported this before, the problem seems to come and go, but here's what the CP Latest Articles page has looked like for me for the past 3 days or so:
Latest Articles Page
Chrome Version 31.0.1650.63 m
|
|
|
|
|
band aid and duct tape applied.
|
|
|
|
|
|
|
I must have missed it - what's the story with this one?
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Clickety[^]
And take at look at middle-right(Top Experts in 24hrs) of this page[^] quickly. Now you got a chance to see the full moon again
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
My Tip/Trick[^] has messed up HTML-tags in the last code block. I can't fix them since the Editor displays the code block like it should look, but the display is a mess.
This is also another bug report for the Article writing editor, someone desparately needs to fix it.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Oh dear. In the meantime I have rescued the formatting.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Sean Ewington wrote: In the meantime I have rescued the formatting.
Thanks a lot, Sean!
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Can we have the ability to create reading lists?
For instance, an ASP .NET reading list, in which I'll add a number of articles in a particular order. The top and bottom of each article in the list will have a "next" and "previous" page, and will have a little box for me to take notes (private).
It's basically like a youtube playlist, but is composed of articles that I can read. Right now, it's a bunch of bookmarks and there's too many of 'em to have any kind of harmony.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
My Article[^]
The copied article[^]
An exact copy of my article with a date 2 weeks earlier than my article.
|
|
|
|
|
Sample one : I tried Google with "Points of Interest" & it returned 636 results.
Clickety[^]
Keyword "Introduction" returned 11,800 results
Clickety[^]
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Nice investigation there.
It appears to be the same site where CP articles are copy/pasted.
Believe Yourself™
|
|
|
|
|
I just changed "Points of Interest" for my name in the query and the $%^&ers have taken 2 of my articles!
|
|
|
|
|
That's really surprising. I tried Marc, Maunder, CG but got nothing. And tried Nish & got one article but not his article.
Those guys carefully removed things like "Authour name", "About author" sections.
In those two articles, you have mentioned your name inside code, that's why you got 2 articles.
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
The legal hamsters have been released, but the site is in based in China, so it is a long, treacherous swim.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks Sean 
|
|
|
|
|
Success. Page shows 404 now.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thanks Sean, the Hampsters are so quick 
|
|
|
|
|
Sean Ewington wrote: legal hamsters
And I have always wondered what was the official name of "ninja": legal hamster.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|