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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 BRAINSTORM!!!!
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 26 August 2003 :  12:30:47  Show Profile
Before you do that the ReplaceCodeTags function is already contained in inc_func_common.asp in v3.4.x. Instead of what Cripto9t posted; try the following:

Around line 1278 find the following:
CodeTags(1,1,2) = "<pre id=""code""><font face=""courier"" size=""" & strDefaultFontSize & """ id=""code"">"
CodeTags(1,2,2) = "</font id=""code""></pre id=""code"">"
Comment out those two lines (by adding a ' before them) and add the following two lines below them:
CodeTags(1,1,2) = <form name=""it""><font face=""courier"" color=""" & strDefaultFontColor & """ size=""" & strDefaultFontSize & ""><textarea name=""getcode"" cols=""60"" rows=""4"" readonly=""readonly"">" 
CodeTags(1,2,2) = "</textarea id=""code""></font><br /><button onclick=""this.form.getcode.focus();this.form.getcode.select();var ttr=this.form.getcode.createTextRange();ttr.execCommand('copy');"">copy code</button></form>"

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 26 August 2003 :  15:24:05  Show Profile
MeTV is right that's all you need is what he has .
But I think you need the <pre> tags in there if you want if you want to keep the white-space intact.
It's hard to keep up with all the up-dates .

    _-/Cripto9t\-_
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 August 2003 :  06:03:41  Show Profile
Nope, no need for the pre tag; a textarea will also preserve any white space contained within it.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07