0

is there any difference between [ code=c ] and [ code=cplusplus ] ? I don't see the difference except, of course, the title. If no other difference why do we need both of them ?

7
Contributors
13
Replies
15
Views
10 Years
Discussion Span
Last Post by John A
0

They do highlight different keywords. That aside, the code bbcode is directly tied into the languages available in our code snippet library.

0

>Neither in C++, its a class name.
But char is a keyword.

The thing highlights class names no differently from keywords.

char test;
cout << "Hello, world." << endl;

Hmm... further testing

char test;
cout << "Hello, world." << endl;

This is really confusing. :-(

0

I don't think true and false are keywords in ANSI C either, but it does recognize the difference with a couple keywords:

bool c = false;
int new, delete;
bool cpp = true;
int new, delete;
0
cout << "Hello, world!" << endl;
std::cout << "Hello, world!" << std::endl;
foo << "Hello, world!" << endl;

First, it could be invoked with [code=cpp] instead of cplusplus. Second, cout is just a value; it is not any more specialer than foo and shouldn't be highlighted any differently. I demand that you fix this within thirty minutes or else I'll tell people about the secret dinosaur sex image boards you have on this site.

Votes + Comments
it was a joke? well if it was then you shouldn't be down repped
secret dinosaur sex image boards?????
0

Umm ...... yeah. Like I said, I didn't write the parser. It's open source. Go complain to the project leaders.

-1

Umm ...... yeah. Like I said, I didn't write the parser. It's open source. Go complain to the project leaders.

If it's open source, that means you can go into geshi/cpp.php and change

'Keywords' => array(
			1 => 'color: #0000ff;',
			2 => 'color: #0000ff;',
			3 => 'color: #0000dd;',
			4 => 'color: #0000ff;'
			),

to

'Keywords' => array(
			1 => 'color: #0000ff;',
			2 => 'color: #0000ff;',
			3 => '',
			4 => 'color: #0000ff;'
			),
Votes + Comments
stop being a smartass
0

I get a bad rep for being offtopic where you were the one who mentioned "secret dinosaur sex image boards" ??? . Its no wonder everyone hates you.

0

>Go complain to the project leaders.
OK, for me it's not a big deal. It's a little nitpick I have. (I seem to have a lot of those, don't I)

>Its no wonder everyone hates you.
No, it's just the people that are incapable of recognizing sarcasm that hate him.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.