The new line numbers inserted when using syntax coloring code tags is causing me problems when copying and pasting code. Here are some examples:
http://www.daniweb.com/techtalkforums/post311344-32.html
I copy and paste the code to my editor. This is how it looks when it's selected in my browser:[IMG]http://img522.imageshack.us/img522/7406/picture1ji6.png[/IMG]
And this is how my code looks when it's in the editor:
1.
#include <stdio.h>
2.
#include <string.h>
3.
4.
int main(void) {
5.
6.
char mystring[] = "this is a test.\n";
7.
char *p = strchr(mystring, '\n');
8.
if (p != NULL) *p = '\0';
9.
printf("%s no newlines should occur.\n", mystring);
10.
11.
}
Sometimes, instead of line numbers I get pound symbols (#) instead. I'm using Firefox 2.0.