| | |
obnoxious color codes
![]() |
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 10:57 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
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.
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
There is some poor-quality colorizer available to folks. It's been around for a while.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
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 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
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.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
I'm confused. Why are moderators editing the colors of other people's code to begin with?
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
•
•
•
•
I'm confused. Why are moderators editing the colors of other people's code to begin with?
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 6:58 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
•
•
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.
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
•
•
•
•
I'm very confused - apparently I came to the thread too late after the weird coloring was fixed.
[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 8:46 pm.
"Technological progress is like an axe in the hands of a pathological criminal."
All my posts may be freely redistributed under the terms of the MIT license.
All my posts may be freely redistributed under the terms of the MIT license.
![]() |
Other Threads in the DaniWeb Community Feedback Forum
- Previous Thread: A sincere request for a separate C++ section
- Next Thread: Width of Code Block
Views: 5538 | Replies: 29
| Thread Tools | Search this Thread |
Tag cloud for DaniWeb Community Feedback
+ abuse beginners bookmark bored box bug bugs calamity code codebox codesnippets codetags code_snippet comments cpuintensive daniweb design editcodesnippet end-of-the-world favouriteforums feedback ff3 flamewar glitch ie6 itsatag! kids layout login lulz negative newfeature poll post preview privatemessaging problem profanitytest profile quality quick rash-bot rashakil-fol reply reputation reputation-power sandwich score search snippet socialgroups solvedthreads sub-forum suggestion tagcloud tagging tags theactualrulerofthetag-cloud:3 therulerofthetag-cloud:[ thread threadtagging today's-posts unansweredposts upgrade user voting whining






