2 different styles of quotes... messing up display. 20 NP$ REWARD

NamecheapNamecheap
Watch

user-7256

VIP Member
Impact
111
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.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
copy + paste?
 
0
•••
Um... copy + paste what...?
 
0
•••
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.
 
0
•••
Sounds similar to the Dreamweaver glitch for:

HTML:
<table width="80%"  border="0" style="background-color:#000000 ">
 
0
•••
Okay, well, do you think it maybe a stripslashes() problem? Even without stripslashes() it still shows up wierd like this.
 
0
•••
you need to have <select> before the options, put a select at the first line.
 
0
•••
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?
 
0
•••
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
 
0
•••
0
•••
<span style="color: #ff0000;">"Test <-- taking it part of the string hm...
probably a geshi problem,
try separating the quote form the Test and see if it changes anything
 
0
•••
0
•••
glad you fixed it:)
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back