![]() |
|
#1
|
||||
|
||||
[todo] : bugs - C++ Syntax HighlighterThis is a list of forum pages that contain / display bugs within the syntax highlighted code for c/c++. Please feel free to reply to this thread with any new examples so I may keep the list updated.
The really obvious bug with highlighted_keywords (when used as part of a variable name) is one the first things I am going to fix when I re-do the syntax highlighter so it is not necessary to point out threads that contain them. For example, look at new_rec in the example code below: CPP / C++ / C Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#2
|
||||
|
||||
|
I am pleased to announce that the C/C++ syntax highlighter bbcode on GIDForums™ is now upgraded.
The bugs that existed before this upgrade, are now all fixed. Please let me know if you find new ones. |
|
#3
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterDuring the thread moves LuciWiz and I have both noticed a disturbing break of the [c] tag.
Example: [c] /* code to show bug in CPP / C++ / C Code:
int i[50]; int c = 10; printf("i CPP / C++ / C Code:
Same thing in a noparse tag /* code to show bug in [c]...[/c] bbcode */ int i[50]; int c = 10; printf("i[c] = %d",i[c]); MORE TESTING BELOW [c++] /* code to show bug in CPP / C++ / C Code:
int i[50]; int c = 10; printf("i CPP / C++ / C Code:
Same thing in a noparse tag /* code to show bug in [noparse]... bbcode */ int i[50]; int noparse = 10; printf("i = %d",i[noparse]); __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#4
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterWill try
/*//tricky comment */ CPP / C++ / C Code:
A space seems to solve the problem: CPP / C++ / C Code:
Note: These kind of imbricated comments are allowed in C++/Java, and are used prety frequently used even in production code. Of course, I guess they are usually on separate rows, like: CPP / C++ / C Code:
Or rather, many experienced programmers would use an #idef, like: CPP / C++ / C Code:
Therefore, the problem has a small incidence. Best regards, Lucian __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#5
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterMark,
I really don't understand the bug you're trying to describe. Can you try again... or send me a link to an existing thread that has this problem? Lucian, I will try to figure out how to fix this right now. |
|
#6
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterHe's saying that if you have code in c-tags like this:
[c] /* code to show bug in [c]...[/c] bbcode */ int i[50]; int c = 10; printf("i[c] = %d",i[c]); [/c] The code tags are not parsed properly, giving [c] /* code to show bug in CPP / C++ / C Code:
int i[50]; int c = 10; printf("i[c] = %d",i CPP / C++ / C Code:
__________________
Age is unimportant -- except in cheese |
|
#7
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterTesting 1, 2, 3...
CPP / C++ / C Code:
Well, there is nothing much I can do to fix this issue. But if you really must use [c] in your example code, you should use the [c++] bbcode instead -- which is why it exists. |
|
#8
|
||||
|
||||
Re: [todo] : bugs - C++ Syntax HighlighterI fixed the multiline comment issue...
CPP / C++ / C Code:
|
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 10:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 20:30 |
| C++ PhoneBook | marita | C++ Forum | 46 | 12-Jun-2005 12:10 |
| Syntax Highlighter BBCode | ashishjha54 | GIDForums™ | 1 | 20-May-2005 06:14 |
| C++ Syntax Highlighter related question | JdS | GIDForums™ | 4 | 25-Oct-2004 08:00 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The