•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the DaniWeb Community Feedback section within the Coffee House category of DaniWeb, a massive community of 426,184 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,777 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our DaniWeb Community Feedback advertiser: Programming Forums
Views: 4279 | Replies: 29
![]() |
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,174
Reputation:
Rep Power: 38
Solved Threads: 930
Take this thread as an example. I want to comment about it on this board instead of hijacking the original thread.
How do all those obnoxious color codes get inserted into such posts? It looks like they were created by some other program then pasted into the post. That is not the only thread I have seen like that. As a moderator I don't have the time to edit out all that crap and insert proper, acceptable code tags.
How do all those obnoxious color codes get inserted into such posts? It looks like they were created by some other program then pasted into the post. That is not the only thread I have seen like that. As a moderator I don't have the time to edit out all that crap and insert proper, acceptable code tags.
Last edited by Ancient Dragon : Jan 29th, 2007 at 9:57 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
There's not really much we can do about it, though.
The only explanation I have is that maybe the users tried to manually color each line with the WYSIWYG editor, but didn't realize that [code=c] doesn't accept colors. Perhaps it could? That would solve *some* of the problems.
The only explanation I have is that maybe the users tried to manually color each line with the WYSIWYG editor, but didn't realize that [code=c] doesn't accept colors. Perhaps it could? That would solve *some* of the problems.
tuxation.com - Linux articles, tutorials, and discussions
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,905
Reputation:
Rep Power: 32
Solved Threads: 117
I'm very confused - apparently I came to the thread too late after the weird coloring was fixed. Essentially joeprogrammer is correct in that color tags within [code=language] tags are ignored because that tag automatically colors code for you, hence its purpose.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
Actually there is a way.
The moderators have to just replace the [code=c] with [code] tags and it should turn out to be fine.
If you will again look at the first post of the thread under consideration, it was edited by me and now it looks relatively okay.
The moderators have to just replace the [code=c] with [code] tags and it should turn out to be fine.
If you will again look at the first post of the thread under consideration, it was edited by me and now it looks relatively okay.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,905
Reputation:
Rep Power: 32
Solved Threads: 117
I'm confused. Why are moderators editing the colors of other people's code to begin with?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,174
Reputation:
Rep Power: 38
Solved Threads: 930
•
•
•
•
I'm confused. Why are moderators editing the colors of other people's code to begin with?
Because many users use color tags instead of using code tags. The original link to this thread which ~S.O.S.~ kindly corrected had both color tags and code tags, and the color tags were still visible making the code difficult to read.
I've seen some posts that contain hundreds of those color tags. I don't edit them out because it just takes too much time. I don't think I should have to spend a great deal of time deleting each one of those [ color=1234 ] and [ /color ] tags with a very high probability that I will delete something else I should not; I'm not that patient and I don't want that much torture. Which is why I started this thread -- the color tags appear as if they were machine/program generated.
Last edited by Ancient Dragon : Jan 30th, 2007 at 5:58 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
•
•
•
•
I'm confused. Why are moderators editing the colors of other people's code to begin with?
Most users who post here are ignorant of either code tags and/or automatic coloring. They then either try to manually color the code without code tags (that's the worst, believe me!) or sometimes they add the colors inside a [code=language] tag, which was the problem here.
tuxation.com - Linux articles, tutorials, and discussions
•
•
•
•
I'm very confused - apparently I came to the thread too late after the weird coloring was fixed.
cplusplus Syntax (Toggle Plain Text)
[color=#120000] #include <iostream>[/color] [color=#120000] using namespace std;[/color] [color=#120000] int main() {[/color] [color=#120000] cout << "cool" << endl;[/color] [color=#120000] return 0;[/color] [color=#120000] }[/color]
The deceptive thing about this is that the WYSIWYG editor actually colors the code, so if you don't preview your post, you won't realize that the color tags don't show up inside [code=language] tags. (see attachment)
Also, the thing that makes the colors look really funky is that the # symbol in C++ means the command is a preprocessor definition, which in DaniWeb's code coloring scheme turns the code all green. Ugh!
Last edited by John A : Jan 30th, 2007 at 7:46 pm.
tuxation.com - Linux articles, tutorials, and discussions
![]() |
•
•
•
•
•
•
•
•
DaniWeb DaniWeb Community Feedback Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
afghanistan backup badge bbc biometrics blair blog blogger blogging blogs breach building code community competition dani daniweb data protection database development events government iraq itv jbennet macs mail management member networking networks news photo php qmail search security serunson server smtp social social networking survey tags terrorist virtual web week yahoo!
- Previous Thread: A sincere request for a separate C++ section
- Next Thread: Width of Code Block



Linear Mode