InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Line breaks between IFCode tags Expand / Collapse
Author
Message
Posted 01/10/2005 09:55:52
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 01/06/2006 09:09:05
Posts: 7, Visits: 11
I've been working with custom IFCodes lately, but I can't seem to make codes to work across multiple lines.  Is this a limitation of the engine or am I writing the regular expressions wrongly?  It just does not recognize codes when there is a newline between them.  For example, the "code" code is unrecognized when are multiple lines of code inside.  Although it seems to work here on the InstantForum boards...

public void Main()

{

}

The "code" regex looks like this (I believe it's the default): \[code\](.*?)\[\/code\]

Post #8705
Posted 04/10/2005 07:31:41


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 2 days ago @ 11:53:33
Posts: 1,959, Visits: 3,027
Hi Andrew,

Multiple lines within IFCode are supported.

Could you send me a PM with your admin username and password with a link to your board. I'd like to investigate further. \[code\](.*?)\[\/code\] is indeed the default regular expression used. I look forward to your response


Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #8731
Posted 04/10/2005 07:36:45


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: 2 days ago @ 11:53:33
Posts: 1,959, Visits: 3,027
Hi Andrew,

Actually could you try the following code for your replace pattern on the code tag...

<div style="margin:0px; padding:6px; border:1px #C8DBED solid; width:100%; overflow:auto;"><font face="Courier New" Size="1" color="#008000"><i>$1</i></font></div>

Please let me know if this helps


Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #8732
Posted 04/10/2005 07:39:01


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Customers
Last Login: 30/12/2008 00:19:04
Posts: 693, Visits: 2,419
FYI : I have the same issue on my board.


..:: Bare ::..
http://www.livingformetal.com
Post #8733
Posted 04/10/2005 07:39:59
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 01/06/2006 09:09:05
Posts: 7, Visits: 11
It's not live yet.  I don't think there's any way to get in from the "outside".  I will continue to play around with it, now that I know it is at least possible (and not a limitation of IFCode).

By the way, I'm using the "text-only" IFCode editor... (not the HTML editor).

Post #8734
Posted 04/10/2005 07:58:14


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Customers
Last Login: 30/12/2008 00:19:04
Posts: 693, Visits: 2,419
My permission set allows for html insertion and the html editor... however, I was testing this with FireFox. The richtextbox does not support html with FireFox. I tried inserting code using IE and the multiple lines work with the code tag...

Either that or it is strictly a FireFox / IE thing???

Another question... Sometimes I notice code within a scrollable text box... Is this done with the code tag after so many lines or is it something else?

Thanks


..:: Bare ::..
http://www.livingformetal.com
Post #8736
Posted 04/10/2005 08:10:15


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Customers
Last Login: 30/12/2008 00:19:04
Posts: 693, Visits: 2,419
FYI : I figured out the scrollable div.. but the html/firefox issue remains...


..:: Bare ::..
http://www.livingformetal.com
Post #8737
Posted 04/10/2005 08:14:12
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 01/06/2006 09:09:05
Posts: 7, Visits: 11
Ryan Healey (10/4/2005)
Hi Andrew,

Actually could you try the following code for your replace pattern on the code tag...

<div style="margin:0px; padding:6px; border:1px #C8DBED solid; width:100%; overflow:auto;"><font face="Courier New" Size="1" color="#008000"><i>$1</i></font></div>

Please let me know if this helps

Thanks Ryan, I'll try that.

Post #8738
Posted 04/10/2005 08:26:44
Forum Newbie

Forum NewbieForum NewbieForum Newbie