Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 need [code] to do more than just font change
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cbsarge
Starting Member

USA
20 Posts

Posted - 08 February 2007 :  16:40:39  Show Profile  Visit cbsarge's Homepage
Right now if I suround text with [code] the text and then the closing tag it just changes the font. I would like it to actually highlite the text in yellow or something also. Which file needs to be edited to make this happen and what do I need to do? I thought I found the right file (inc_func_posting.asp?) but, it had no effect when I edited it or I didn't edit it correctly.

Thanks!

"if we don't measure it, we can't lie about it"

Edited by - cbsarge on 10 February 2007 08:36:44

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 08 February 2007 :  17:19:02  Show Profile  Visit HuwR's Homepage
it doesn't actually change the font, what it does is wrap it in a <pre> tag, that is what actually changes the font, it has to in order to make it a monospaced font and therefore preserver the formatting.

If you want to change the colour of the font in the pre tag, add a style which gives the font a colour or a highlight, you can do that by editing the style section in inc_header.asp around lines 260 to 270
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 February 2007 :  05:22:42  Show Profile  Visit MarcelG's Homepage
Here's an other alternative: http://oxle.com/topic.asp?tid=4295

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

cbsarge
Starting Member

USA
20 Posts

Posted - 09 February 2007 :  12:57:57  Show Profile  Visit cbsarge's Homepage
I'm not sure what to edit in the inc_header.asp file around that area. I tried the linked to mod that MarcelG gave the link to but, the forum wouldn't even load after that.

"if we don't measure it, we can't lie about it"
Go to Top of Page

cbsarge
Starting Member

USA
20 Posts

Posted - 09 February 2007 :  13:55:52  Show Profile  Visit cbsarge's Homepage
Is there a Forum Code for highlight?

"if we don't measure it, we can't lie about it"
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 09 February 2007 :  14:06:33  Show Profile  Visit MarcelG's Homepage
quote:
Originally posted by cbsarge

I'm not sure what to edit in the inc_header.asp file around that area. I tried the linked to mod that MarcelG gave the link to but, the forum wouldn't even load after that.

Sorry ? The mod instructions explicitly state what to replace and where.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

cbsarge
Starting Member

USA
20 Posts

Posted - 09 February 2007 :  14:32:50  Show Profile  Visit cbsarge's Homepage
I'm sure I missed something in the mod instructions. I did get it to do what I want though by changing line 1487 in the inc_func_common.asp file to the following:

	CodeTags(1,1,2) = "<pre id=""code""><font face=""courier"" style=""background-color: yellow"" size=""" & strDefaultFontSize & """ id=""code"">"


This makes the code background yellow.

"if we don't measure it, we can't lie about it"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07