Page Index Toggle Pages: 1
Topic Tools
Normal Topic Missing code box scrolling (Read 1,580 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Missing code box scrolling
Reply #1 - Feb 6th, 2010 at 8:13am
Post Tools
New
Sources/YaBBC.pl
in CVS.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Missing code box scrolling
Feb 6th, 2010 at 1:57am
Post Tools
While working on the code syntax highlight mod i noticed that the code box no longer scrolls when there are more than 20 lines of code - it just keeps on growing.

Somebody moved the code regex up close to the top of the 'DoUBBC' sub routine in YaBBC.pl - a tad to far.

The fix:
In YaBBC.pl find
Code
Select All
	$message =~ s~\[code\]\n*(.+?)\n*\[/code\]~&codemsg($1)~eisg; #  [code] must come at first! At least before image transformation! 


and move it down under
Code
Select All
	$message =~ s~<br>|<br />~\n~ig; 

« Last Edit: Feb 6th, 2010 at 1:59am by »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top