Bigger "Code" tag

By cigno5.5 Last update Sep 15, 2005 — Installed 672 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
arantius Scriptwright

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;
}

 
cigno5.5 Script's Author

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!)

 
nitro322 Scriptwright

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.

 
cigno5.5 Script's Author
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"
 
cigno5.5 Script's Author

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!

 
nitro322 Scriptwright

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.

 
nitro322 Scriptwright

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.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel