Propose HTML + Javascript code formatting

Reply

Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 170
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Propose HTML + Javascript code formatting

 
0
  #11
Sep 5th, 2007
I am seeing the line numbers overlapping on some of these. See post 6.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,141
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Propose HTML + Javascript code formatting

 
0
  #12
Sep 5th, 2007
I'm not sure what you mean. Can you take a screenshot?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 170
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Propose HTML + Javascript code formatting

 
0
  #13
Sep 6th, 2007
Here it is. Look at the code area. The line numbers are overlapping.

I have Firefox 2.0.0.6 on Windows XP, resolution 1152 X 864.
Last edited by MidiMagic; Sep 6th, 2007 at 6:19 pm.
Attached Thumbnails
numover.jpg  
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,141
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Propose HTML + Javascript code formatting

 
0
  #14
Sep 6th, 2007
Does this happen when there are multiple lines of code? Every line overlaps?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Propose HTML + Javascript code formatting

 
0
  #15
Sep 6th, 2007
In Opera, I only see a single line ( and single line number ) in my posted codeblock..

But, there's a superfluous <li> in the HTML close to the screwy '</span</span>' part.. So, there should really be another line number shown.

In Firefox 2, I see the same as MidiMagic, a pair of line numbers, with one over the other; but ONLY in this (unfinished quote) case and normally they are absolutely fine.

The browsers are dealing with the bad bit of data differently, which is unsuprising really, since 'correct' behaviour isn't defined. Opera hides the next <li> and spills blue from the unclosed quote to the end of the Daniweb page, Firefox squashes the next <li> and continues as per usual.

I thought there'd be quite a simple explanation, like the parser starting a blue span and not closing it.. that's what it looks like in Opera. Personally, I wouldn't rank this problem as 'high priority' if you're having trouble nailing it down.. It doesn't seem to be exploitable.
Last edited by MattEvans; Sep 6th, 2007 at 8:11 pm.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,141
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Propose HTML + Javascript code formatting

 
0
  #16
Sep 6th, 2007
Oh I forgot to mention, I fixed the problem (I think) yesterday but it only applies to new posts. Testing testing ...

  1. <a href="

std::string hello( "hi
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Propose HTML + Javascript code formatting

 
0
  #17
Sep 6th, 2007
It blued out for me again, see attached. My post wasn't showing blue until you started it all over again =P.
Attached Thumbnails
Screenshot-Propose HTML + Javascript code formatting - DaniWeb Community Feedback - Opera.png  
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 170
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Propose HTML + Javascript code formatting

 
0
  #18
Sep 6th, 2007
Originally Posted by cscgal View Post
Oh I forgot to mention, I fixed the problem (I think) yesterday but it only applies to new posts. Testing testing ...

  1. <a href="

std::string hello( "hi
It did it only on the last two lines, and then only if the last line was empty.

These are OK.
Last edited by MidiMagic; Sep 6th, 2007 at 9:42 pm.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 170
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Propose HTML + Javascript code formatting

 
0
  #19
Sep 6th, 2007
Originally Posted by MattEvans View Post
It blued out for me again, see attached. My post wasn't showing blue until you started it all over again =P.
I haven't seen this blue at all in Firefox.

Something is bloo-ey.

Since it involves busted span tags, maybe we should call this bloo problem "span spam."
Last edited by MidiMagic; Sep 6th, 2007 at 9:38 pm.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the DaniWeb Community Feedback Forum


Views: 2553 | Replies: 18
Thread Tools Search this Thread



Tag cloud for DaniWeb Community Feedback
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC