Bug (Q and A forum)[Solved] [modified]
-
When I answer one question and add line
#include
than it display like
#include
I tried it two to three times but not succeeded. Is it a bug ?? Please check. Reason: I use the code block after adding the string. Thanks
"Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)
modified on Thursday, May 19, 2011 10:49 PM
-
When I answer one question and add line
#include
than it display like
#include
I tried it two to three times but not succeeded. Is it a bug ?? Please check. Reason: I use the code block after adding the string. Thanks
"Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)
modified on Thursday, May 19, 2011 10:49 PM
did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
Yeah, when I view the source of the OP, I see the first line should have been:
#include <atlstr.h>
And the second line should have been:
#include <atlstr.h></atlstr.h>
I imagine the problem they are running into is 1) they are not escaping their HTML characters so 2) Code Project is detecting an open tag and automatically adding a close tag (at least, that's the way CP's code seems to be seeing it).
-
Yeah, when I view the source of the OP, I see the first line should have been:
#include <atlstr.h>
And the second line should have been:
#include <atlstr.h></atlstr.h>
I imagine the problem they are running into is 1) they are not escaping their HTML characters so 2) Code Project is detecting an open tag and automatically adding a close tag (at least, that's the way CP's code seems to be seeing it).
IMO there is ample opportunity here for CP to do a better job. They could check all < and > signs and the text enclosed, and whenever it isn't an acceptable HTML tag, automatically escape those angulars. I always considered it a poor choice accepting HTML inside PRE blocks, there is more harm than benefit here (especially when the bold effect, potentially the most useful one, isn't working [particularly well). Of course the OP is also at fault, as he didn't check his message, he should have seen it wasn't conveying what he meant. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
Hi Luc, Thanks for your reply. Actually yesterday I was facing problem that when I first type the line and use pre tag than it display incorrectly but if I use pre tag first and than type the line than it display correctly.Today I am doing the same and it is working fine. I don't understand why file name is not displayed here. No escaping of < and >. May be the reason that I am not using pre tag.
"Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)
-
Hi Luc, Thanks for your reply. Actually yesterday I was facing problem that when I first type the line and use pre tag than it display incorrectly but if I use pre tag first and than type the line than it display correctly.Today I am doing the same and it is working fine. I don't understand why file name is not displayed here. No escaping of < and >. May be the reason that I am not using pre tag.
"Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)
I don't know what happened since yesterday, however your original message looks different now. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
I don't know what happened since yesterday, however your original message looks different now. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
Yes I did it. I want to show you the problem but today many times I tried and not find the issue that I was facing yesterday. :)
"Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)