Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Problem with [code] and Java

Quote Reply
Problem with [code] and Java
hello,

many of my forums users are posting javascript code. The problem shown below:

it should be

var A = new Array();
A[_ i_];
return;
and
var A = new Array();
A[_i_] [_b_];
return;

Code:
var A = new Array();
A = 0;
return;

Code:
var A = new Array();
A = 1;
return;

but there is italic and bold.

How can I avoid this.


I know, that I know nothing.
Quote Reply
Re: [eoeser] Problem with [code] and Java In reply to
Hi,

Using [pre] seems to do the trick;


Code:
var A = new Array();
A[_ i_];
return;
and
var A = new Array();
A[_i_] [_b_];
return;

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Problem with [code] and Java In reply to
pre has the same

yes, this is PRE

Code:
var A = new Array();
A = 0;
return;

look at bold and italic.

It seems to be the convert_markup() sub.

I think, we need a custom_convert, but I don't know, to kook it in.


I know, that I know nothing.

Last edited by:

eoeser: Oct 28, 2005, 4:16 AM
Quote Reply
Re: [eoeser] Problem with [code] and Java In reply to
Hi,

Have you tried putting a . in the tag? i.e [. __b__ ] (without the spaces).

This will effectily tell GForum that the [ ] part shouldn't be processed, but instead show "as-is" (without the .).

Example;

[__b__]

Hope that helps.

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Problem with [code] and Java In reply to
think about this

[pre]

for ( var b = 0; i<10; b++){
for ( var i = 0; i < Array.length; i++){
Array[i][b]++;
}
}

[/pre]

The dot is'nt what i want.


I know, that I know nothing.

Last edited by:

eoeser: Oct 28, 2005, 4:20 AM
Quote Reply
Re: [eoeser] Problem with [code] and Java In reply to
Code:
var A = new Array();
A[i];
return;

var A = new Array();
A[i][b];
return;

As Andy said, put a . (period) after the opening bracket and it won't interpret it as a markup tag (eg. A[.i]).

Adrian

Last edited by:

brewt: Oct 28, 2005, 12:57 PM