ShaneCunn / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Dont work in Firefox 3, problems in Firefox 2. #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Open a page with Syntaxhightlighter in Firefox 3. It dont work at all. In 
Firefox 2 it render bad when horisontal scrollbar (to right under scroll 
background is just white).

Tested version 1.5.1 on Windows XP.

Original issue reported on code.google.com by oyvind.i...@gmail.com on 27 Aug 2008 at 7:53

GoogleCodeExporter commented 8 years ago
Only commenting on part 2 of this post!

Quick fix:
var ol2screen = document.getElementsByTagName('ol');
for (var i = 0; i < ol2screen.length; i++) {
    ol2screen[i].style.width = ol2screen[i].clientWidth + (padding & spacing);
}

It watches all of the ol's in your document, and gives it the width that the 
browser
gave it. Strange issue...

Original comment by metalar...@gmail.com on 21 Sep 2008 at 10:35

GoogleCodeExporter commented 8 years ago
Here is an example:
http://robertmarkbramprogrammer.blogspot.com/2008/09/setting-name-attribute-on-a
nchor-via.html

The highlighting for HTML works in Firefox, but not Javascript - nor Java, 
which I
have examples for elsewhere. Firefox 3.0.4

I tend to think this is a high priority, as I believe a lot of technical people 
would
use Firefox to look at the kind of pages (like blogs) that might use this 
excellent tool.

Rob
:)

Original comment by robertma...@gmail.com on 18 Dec 2008 at 2:14

GoogleCodeExporter commented 8 years ago
@robertmarkbram:

Error: The stylesheet 
http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Styles/SyntaxHighli
ghter
.css was not loaded because its MIME type, "text/plain", is not "text/css".
Source File: http://robertmarkbramprogrammer.blogspot.com/2008/09/setting-name-
attribute-on-anchor-via.html
Line: 0

Original comment by alex.gor...@gmail.com on 18 Dec 2008 at 2:51

GoogleCodeExporter commented 8 years ago
@alex.gorbatchev

Hi Alex,

Are you suggesting that I just need to change the link to this:

<link
href='http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Styles/Syntax
Highlighter.css'
rel='stylesheet' type='text/plain'/>

Because when I do this, it doesn't fix the issue on Firefox - and breaks IE7 
too.

Rob
:)

Original comment by robertma...@gmail.com on 18 Dec 2008 at 10:52

GoogleCodeExporter commented 8 years ago
OK - I don't think this is a bug for Firefox 3 now. Using this blog post:
http://isuman.blogspot.com/2008/09/syntaxhighlighter-for-blogger.html

I got it working fine on my blog when hosting the files in my own Google page 
creator
"site".

Rob
:)

Original comment by robertma...@gmail.com on 19 Dec 2008 at 1:57