Code still doesn't look ok in Mozilla
Hi,
Being primary a mac user I have to use the mozilla browser.
Any status on if and when the code view will work on these browsers?
/Johan
Doesn't work right in Opera either, ever since it's creation, at least in Opera it's a simple change :\
You mean the div/span thingie? I just tried it (on Opera), but it doesn't completely fix it. Apparently Opera doesn't like the way styles are being set now either:
currently:
style='color=purple;display=inline'
shoud be:
style='color: purple;display: inline'
btw. I wouldn't be supprised when they change all of this; the next day Presto comes out, and everything would have worked fine ;)
Why doesn't Opera just update itself? It works on every other browser. Webmasters aren't going to spend 2 hours reprogramming something for a browser that 0.2% of people use when it's the browser's problem!
Because Opera is the most accurate implementation of the HTML/CSS specification. It's not Opera that is broken, it's the web-sites (I do see your argument, but it would be much nicer if people actually fixed the HTML rather than relying on other buggy/non-compliant browsers).
The DIV/SPAN thing would be the work of a couple of minutes editing the site's PHPBB code template or whatever.
I'm using style="property=var" instead of style="property:var"? that's stupid. Must be something that phpBB is doing... I'll check it out when i get back from the Summit
AFAIK, don't Apple Macs come with Internet Explorer?
I know it's a free download, not sure if it's bundled.
It's sad when people code AROUND the biggest, buggiest browser, instead of going by the true standards.
David: Yeah, they have a really crappy version of Internet Explorer 5 that ships with the OS. It's full of bugs, unstable and crashes a lot...
As a closet Mozilla advocate and web developer, I'm quite happy to fix up the code display in Mozilla if the site ops will allow me to. It's damn annoying having to load IE specifically for this site.
Yea, go for it JonT! I loathe IE especially with such a fast browser like Opera.
(By the way, noticed something, opening up 15+ PM windows causes you to lose your account and have to log in again.. I love tabbed browsing :P)
Sure... What do you need?
I think I'll need Dan's syntax highlighting code as well as the PHPBB templates. Is everyone happy with the way things work in IE at the moment? If so I'll attempt to replicate this behaviour in Moz and Opera.
wooh, Presto beta for Windows has been released, code doesn't look ok on it though.
Any progress guys? =]
This is the only part you need:
//The following vars determine the exact HTML that is output to begin and end
//each type of coloring
//Used at the beginning and end of the entire code block:
$code_start='<div style=\'color=black;display=inline\'>';
$code_end='</div>';//'</b></font>';
//Reserved keywords (for, else, if, case, etc):
$keyword_start='<div style=\'color=blue;display=inline\'>';
$keyword_end='</div>';
//Strings, single and double quote (' & "):
$string_start='<div style=\'color="#840000";display=inline\'>';
$string_end='</div>';
//Comments (// and /* */):
$comment_start='<div style=\'color=green;display=inline\'>';
$comment_end='</div>';
//Operators (+, ++, ., ;, etc):
$operator_start='<div style=\'color=red;display=inline\'>';
$operator_end='</div>';
//Numbers (123, 0xffff, etc):
$number_start='<div style=\'color=purple;display=inline\'>';
$number_end='</div>';
//End HTML syntax vars
Dan East
Still messed up in Opera7 B1, which is a very nice browser btw, manages to speed up even more!
the one thing that i don't like about opera.. the lack of support for javascript. rather, the inaccuracies in supporting javascript. quite a few of the javascripts that i've made or helped making never really worked in opera..
opera's support for rendering javascript code in iframes is extremely poor, just as an example.
Thankfully this isn't a big case to me, as most of the JS that doesn't work is irritating JS :P
About the code bug, I guess we should just give up hope about it ever getting fixed?

No, don't give up hope... Just don't expect it within the next 2 weeks.
Ahh, so just like PM 2, it's coming.
you'll get this before pm2

What code again? I don't see it as I have no idea where to look for the fault. I'm using Mozilla on Linux.
edit: sorry I got it. the code tag.