Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Bigger "Code" tag

Enlarge "code" and "pre" tag into web pages

this script enlarge font for all "code" tags into html web page. (for example on javaworld.com). The new size is fixed into 12pt *updated*
added resizing for "pre" tag





1 point
login to vote
arantius scriptwright
Posted Apr 29, 2006

There's a much better way to do this, and it's called userContent.css:

http://www.mozilla.org/support/firefox/edit#con...

Put in a rule like:

code, code *, pre, pre * {
font-size: 12pt;
}

1 point
login to vote
cigno5.5 script's author
Posted Oct 2, 2005

nitro322, the problem is that sourceforge use a "font" tag inside "pre" tag. In the "font" tag attribute "size" is setted to "-1", my script add a style attribute into "pre" tag but the font tag set a specific size for a specific text part, so my "12px" that i setted was completely ignored!! I'm sorry, but is not my script and isn't your browser...it's sourceforge!
(but i could write a new script to avoid this!)

1 point
login to vote
nitro322 scriptwright
Posted Oct 1, 2005

Thanks, cigno5.5! However, I still can't get this to work correctly with "pre" tags. Check out this page as an example:
http://programming.newsforge.com/programming/05...

Under the Magic heading, it use "code" tags to format fixed-width text, and your extension reseized it perfectly. However, the History section just below use "pre" tags to do the same. No matter what I try, I cannot get that section to be resized. Maybe Newsforge is doing something odd to prevent it? Or maybe it's just my browser...

Anyway, thanks for the help with this. Very cool extension.

1 point
login to vote
cigno5.5 script's author
Posted Sep 29, 2005
nitro322, i did a simple modification and i updated the script. The code to resize "pre" tag is identical to the code for "code" tag. i haven't found problems!
the only tedious thing is that "pre" tag works as preformatted text and, for example, this page, after updating script, is wrong rendered because your comment throws out from "column"
1 point
login to vote
cigno5.5 script's author
Posted Sep 28, 2005

this cms use "markdown" input type (see http://daringfireball.net/projects/markdown/) if you edit destcription of an your script you'll see the advertise on top.

about the "bug" you reported i'll try to solve your problem!

1 point
login to vote
nitro322 scriptwright
Posted Sep 27, 2005

OK, I apologize about the above comment. It was in reference to < pre > tags, which apparently get rendered by this CMS. The question was asking if the same properties applied to < code > tags could also be applied to < pre >.

Thanks.

1 point
login to vote
nitro322 scriptwright
Posted Sep 27, 2005

Great script, but it's somewhat incomplete. Many sites use

 tags to show formatted code, which is also rendered obnoxiously small by Firefox.  I tried modifying your script to apply to 
 tags as well, but I couldn't get it to work.  I was able to make changes to other tags, but nothing I did seemed to affect 
.
      
      Could you please add this functionality?  Or is this even possible?
      
      Thanks.

You could comment on this script if you were logged in.