[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 09-10-2005, 05:02 PM   #1 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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.
mholt is offline  
Old 09-11-2005, 09:25 AM   #2 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 71
136.00 NP$ (Donate)

lemmin is an unknown quantity at this point


copy + paste?
lemmin is offline  
Old 09-11-2005, 11:55 AM   #3 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Um... copy + paste what...?
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 09-11-2005, 02:29 PM   #4 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 71
136.00 NP$ (Donate)

lemmin is an unknown quantity at this point


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.
lemmin is offline  
Old 09-11-2005, 02:32 PM   #5 (permalink)
SQLdumpster.com
 
miseria's Avatar
 
Join Date: Jun 2005
Location: West Sussex, UK
Posts: 545
205.50 NP$ (Donate)

miseria will become famous soon enoughmiseria will become famous soon enough


Sounds similar to the Dreamweaver glitch for:

HTML Code:
<table width="80%"  border="0" style="background-color:#000000 "> 
miseria is online now  
Old 09-11-2005, 02:36 PM   #6 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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!
mholt is offline  
Old 09-11-2005, 02:38 PM   #7 (permalink)
Senior Member
 
legend2's Avatar
 
Join Date: Sep 2005
Posts: 1,102
141.05 NP$ (Donate)

legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of


you need to have <select> before the options, put a select at the first line.
legend2 is offline  
Old 09-11-2005, 03:16 PM   #8 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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!
mholt is offline  
Old 09-11-2005, 03:39 PM   #9 (permalink)
RJ
NamePros Founder

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
104,451.68 NP$ (Donate)

RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness

Find Marrow Donors! Cystic Fibrosis
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
RJ is offline  
Old 09-11-2005, 03:48 PM   #10 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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!
mholt is offline  
Old 09-11-2005, 04:33 PM   #11 (permalink)
Senior Member
 
legend2's Avatar
 
Join Date: Sep 2005
Posts: 1,102
141.05 NP$ (Donate)

legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of


<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
legend2 is offline  
Old 09-11-2005, 05:23 PM   #12 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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!
mholt is offline  
Old 09-11-2005, 10:22 PM   #13 (permalink)
Senior Member
 
legend2's Avatar
 
Join Date: Sep 2005
Posts: 1,102
141.05 NP$ (Donate)

legend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud oflegend2 has much to be proud of


glad you fixed it
legend2 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:01 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85