| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| DNOA Member | 2 different styles of quotes... messing up display. 20 NP$ REWARD PROBLEM SOLVED! - I was missing a stripslashes() function when retrieving the source. It was messy coding, so I overlooked it because i unnecessarily withdrew source code from the database 3 times. I've optimized the code and fixed it! Thanks, legend2! You opened my eyes to what I did not see! 20 NP$ sent ![]() Hi, There are apparently 2 different styles of quotes. Please look here: http://view.gotutorials.com/content.php?tutorial=1 Ignore my stupid comments on there... they're just tests... But notice the highlighting. I use GeSHi (http://qbnz.com/highlighter/) to highlight them... and I don't think you need to know anything about GeSHi to help me answer this, but please let me know how I can replace the first quote (the first quote is unique) as the style of the other ones. Or, vice versa. 20 NP$ reward.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! Last edited by compuXP; 09-11-2005 at 05:40 PM. |
| |
| | #3 (permalink) |
| DNOA Member | Um... copy + paste what...?
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #4 (permalink) |
| NamePros Member | Well, I guess I'm not sure what you are trying to do. If those two quotes are actually different characters (different ascii code), then if you copy and paste it to the other spots it will be the same. It does'nt seem very likely that they are different characters, so the different colors would just be a glitch in that highlighter. It looks to me that when it starts the color sequence, it thinks there is a quote open and the all the code up to the first quote will be the color that is supposed to be inside the quote (black). Try making the very first character in your code a quote and the rest normal. If that isn't what you are talking about, you might want to explain it a little better. |
| |
| | #6 (permalink) |
| DNOA Member | Okay, well, do you think it maybe a stripslashes() problem? Even without stripslashes() it still shows up wierd like this.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #8 (permalink) |
| DNOA Member | No... sorry... not what I'm talking about. That's just a sample code snippet to show you the highlighting problem. Why is it doing this?
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #9 (permalink) |
| NamePros Founder Administrator | Looks like a GeSHi issue to me. Are you telling GeSHi to highlight it as PHP or HTML? I can't tell how you have it setup, but also consider if you're sending code to GeSHi that has been encoded in hex. If so, you might need to decode it first. http://us2.php.net/manual/en/function.rawurldecode.php |
| |
| | #10 (permalink) |
| DNOA Member | Hey RJ, thanks. But, It's the correct language... http://view.gotutorials.com/content.php?tutorial=6 That's an example of PHP highlighting. Same result. I'm not sending any encoded thing to GeSHi.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #12 (permalink) |
| DNOA Member | Hey, great idea legend2 .... Look: http://view.gotutorials.com/content.php?tutorial=6 The second PHP code snippet... it works. Hmm...
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cheap Names With Prices in $ and NP$ | DomainOgre | Domains For Sale - Fixed Price | 5 | 11-29-2003 01:10 PM |