|
|
What I do, since I like to use HTML, is to do ">" for greater-than and "<" for less-than. If you don't feel like going through your code and changing it, you can use Daniel Turini's Desktop Bob's HTMLizer to do it.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
It's not really a matter of looking for a work-around. The real problem is that 99% of the time if someone posts a question that has anything to do with templates, any code snippets they include will be useless because they don't realize all the havoc that < and > will cause.
I just think that on a message board devoted to discussing programming issues, you should be able to copy and paste a chunk of code and have it display correctly without jumping through hoops.
|
|
|
|
|
...And why did that message show up as "Anonymous"?
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
If people want that, they can turn off the HTML option. But as I was saying, Desktop Bob's HTMLizer fixes the <> for you.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
They should use the <pre> tag.
Jason Henderson My articles
"The best argument against democracy is a five-minute conversation with the average voter." - Winston Churchill
|
|
|
|
|
it still chokes on <'s
-c
A vote with no reponse is the way of the coward.
|
|
|
|
|
JT Anderson wrote:
(I'd love to see the forum switch to vBulletin.)
Oh god no, won't somebody please think of the children
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
JT Anderson wrote:
, < and > cause problems, even if inside code tags. I don't know if anyone else has noticed this, but < and > appear quite frequently in C++ code.
on my own boards, i added a [code]...[/code] tag set. anything in there is shoved through a regex that replaces all the angle brackets with HTML-friendly escapes. it certainly makes life a lot easier for my posters, with a total of 20 minutes work on my part.
i'm surprised CP doesn't do something similar
-c
A vote with no reponse is the way of the coward.
|
|
|
|
|
Chris Losinger wrote:
i'm surprised CP doesn't do something similar
Then how would you get to do all those CSS and fun HTML tricks that everyone does?
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
Then how would you get to do all those CSS and fun HTML tricks that everyone does?
Precisely! I agree. I love the flexibility that HTML gives me. (Does anyone notice the DirectX alpha transform in my sig?)
We might have a middle ground where HTML is used, but any > < and & inside a [code] tag is parsed into > and > and &, respectively, by the page when it is displayed. Anyone who doesn't want to use this doesn't have to- they just use <pre> instead of [code].
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Chris Maunder wrote:
Then how would you get to do all those CSS and fun HTML tricks that everyone does?
only apply the regexp when the text is inside &clt;code> tags
A vote with no reponse is the way of the coward.
|
|
|
|
|
Chris Maunder wrote:
Then how would you get to do all those CSS and fun HTML tricks that everyone does?
Much as i love putting facial hair on Bob, i could probably live without doing it while posting code...
- Shog9 -
I'd show a smile but I'm too weak
I'd share with you, could I only speak
|
|
|
|
|
One day, young man...
cheers,
Chris Maunder
|
|
|
|
|
Yeah, that's precisely what I expected the <code> tags to do here. But, unless I screwed up, they don't seem to work that way.
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
I think we could use a Message Board or maybe even a Section on "Installation & Deployment"...it may be quite helpful.
|
|
|
|
|
I'll second that motion!
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
Hi
How can I find out my questions on this site if I have forgotten titles of the questions, of course using my ID
I need something searching mechanizm not just clicking
Next . . . Next . . . Next . . .
Thanks
|
|
|
|
|
As long as you smart enough to use the same logon name every time its easy.
bookmark or make a favourite this URL http://www.codeproject.com/script/comments/all_comments.asp?mode=all&userid=159886
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
Warning Link to the minion's animation, do not use.
It's a real shame that people as stupid as you can work out how to use a computer. said by Christian Graus in the Soapbox
|
|
|
|
|
Colin Davies wrote:
bookmark or make a favourite
What are the other posible param-values for... mode??
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
What are the other posible param-values for... mode??
nothing more...
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Thanks!
I was born intelligent Education ruined me!.
|
|
|
|
|
I like CP, and I'd be shattered if it was to shut down now like some other sites have done. So in effect I am a stakeholder in CP's future like many other "CPians" are.
I'd like to hear Chris announce oneday that CP is doing OK financially oneday as I do worry about this. But I don't think this will happen.
Owners of sites like CP in the past really made there loot on the speculative capital gains rather than direct trading, but since the dot com bubble burst this is not so easy.
So my suggestion is that CP mix code with pr0n to earn revenue.
We all know that what really drives the Internet is the Pr0n industry, just like games push the hardware industry.
I'm unsure how pr0n would be mixed with code but I'm sure a way could be found.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
Warning Link to the minion's animation, do not use.
It's a real shame that people as stupid as you can work out how to use a computer. said by Christian Graus in the Soapbox
|
|
|
|
|
|
mmmm well maybe there could be too versions of CP
the Adult version and the restricted version.
The Admins obviously know how many CP members flick between code articles and pr0n sites. So it makes sense to try to hold the members at one site.
Everyone says they don't use prositutes or review pr0n etc, but in reality the sex industry is massive and it must be getting it's support from somewhere.
Do you have any other ideas how CP or other sites could be more financially viable. Its a massive paradox really that we gain so much from the information available on the web but nobody expects to pay for it. (I'm the same)
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
Warning Link to the minion's animation, do not use.
It's a real shame that people as stupid as you can work out how to use a computer. said by Christian Graus in the Soapbox
|
|
|
|