Previous Thread
Next Thread
Print Thread
Hop To
#188074 06/21/2007 7:44 PM
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Where can I change the window size of posted CODE ?

Currently posted code window is way too small (IMHO)

Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Sample:

Code
Function DefaultAutoexecNT($Ext,$Bak)
  If @INWIN=2 Exit 1 EndIf
  Dim $File,$FileBackup,$WL
  Dim $Handle,$OpenFile,$CloseFile
  $File = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Ext
  $FileBackup = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Bak
  If Exist($FileBackup)
  ;Assumes a valid backup already exists so we will now create all new default file
  Else
    If Exist($File)
  	  Move $File $FileBackup
  	  If @ERROR Exit @ERROR EndIf
    EndIf
  EndIf
  $WL='@echo off'+ @CRLF+
  @CRLF+
  'REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.'+@CRLF+
  'REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a'+@CRLF+
  'REM different startup file is specified in an application'+"'"+'s PIF.'+@CRLF+
  @CRLF+
  'REM Install CD ROM extensions'+@CRLF+
  'lh %SystemRoot%\system32\mscdexnt.exe'+@CRLF+
  @CRLF+
  'REM Install network redirector (load before dosx.exe)'+@CRLF+
  'lh %SystemRoot%\system32\redir'+@CRLF+
  @CRLF+
  'REM Install DPMI support'+@CRLF+
  'lh %SystemRoot%\system32\dosx'+@CRLF+
  @CRLF+
  'REM The following line enables Sound Blaster 2.0 support on NTVDM.'+@CRLF+
  'REM The command for setting the BLASTER environment is as follows:'+@CRLF+
  'REM    SET BLASTER=A220 I5 D1 P330'+@CRLF+
  'REM    where:'+@CRLF+
  'REM        A    specifies the sound blaster'+"'"+'s base I/O port'+@CRLF+
  'REM        I    specifies the interrupt request line'+@CRLF+
  'REM        D    specifies the 8-bit DMA channel'+@CRLF+
  'REM        P    specifies the MPU-401 base I/O port'+@CRLF+
  'REM        T    specifies the type of sound blaster card'+@CRLF+
  'REM                 1 - Sound Blaster 1.5'+@CRLF+
  'REM                 2 - Sound Blaster Pro I'+@CRLF+
  'REM                 3 - Sound Blaster 2.0'+@CRLF+
  'REM                 4 - Sound Blaster Pro II'+@CRLF+
  'REM                 6 - SOund Blaster 16/AWE 32/32/64'+@CRLF+
  'REM'+@CRLF+
  'REM    The default value is A220 I5 D1 T3 and P330.  If any of the switches is'+@CRLF+
  'REM    left unspecified, the default value will be used. (NOTE, since all the'+@CRLF+
  'REM    ports are virtualized, the information provided here does not have to'+@CRLF+
  'REM    match the real hardware setting.)  NTVDM supports Sound Blaster 2.0 only.'+@CRLF+
  'REM    The T switch must be set to 3, if specified.'+@CRLF+
  'SET BLASTER=A220 I5 D1 P330 T3'+@CRLF+
  @CRLF+
  'REM To disable the sound blaster 2.0 support on NTVDM, specify an invalid'+@CRLF+
  'REM SB base I/O port address.  For example:'+@CRLF+
  'REM    SET BLASTER=A0'+@CRLF
  $Handle = FreeFileHandle()
  $OpenFile = Open($Handle, $File,5)
  $WL = WriteLine($Handle,$WL + @CRLF)
  $CloseFile = Close($Handle)
  Exit @ERROR
EndFunction 


Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
its a browser thing i'm lead to believe.

you seeing it in FF or IE

when i post code i add a few carriage returns at the end wink
i think i'm right, testing.

Code
its a browser thing i'm lead to believe.

you seeing it in FF or IE

when i post code i add a few carriage returns at the end ;)
i think i'm right, testing.




saying that i don't know but could it be wider ?


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
i'm in IE 7 now and it looks the same,
i'm in agreement with you.

bigger please wink


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Nov 2006
Posts: 3,097
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097
Likes: 1
Yes I'd like to change the Width, Height settings to make it bigger before the scroll bars kick in.

Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
The result is more pleasing in quote tags wink

Quote
Function DefaultAutoexecNT($Ext,$Bak)
If @INWIN=2 Exit 1 EndIf
Dim $File,$FileBackup,$WL
Dim $Handle,$OpenFile,$CloseFile
$File = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Ext
$FileBackup = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Bak
If Exist($FileBackup)
;Assumes a valid backup already exists so we will now create all new default file
Else
If Exist($File)
Move $File $FileBackup
If @ERROR Exit @ERROR EndIf
EndIf
EndIf
$WL='@echo off'+ @CRLF+
@CRLF+
'REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.'+@CRLF+
'REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a'+@CRLF+
'REM different startup file is specified in an application'+"'"+'s PIF.'+@CRLF+
@CRLF+
'REM Install CD ROM extensions'+@CRLF+
'lh %SystemRoot%\system32\mscdexnt.exe'+@CRLF+
@CRLF+
'REM Install network redirector (load before dosx.exe)'+@CRLF+
'lh %SystemRoot%\system32\redir'+@CRLF+
@CRLF+
'REM Install DPMI support'+@CRLF+
'lh %SystemRoot%\system32\dosx'+@CRLF+
@CRLF+
'REM The following line enables Sound Blaster 2.0 support on NTVDM.'+@CRLF+
'REM The command for setting the BLASTER environment is as follows:'+@CRLF+
'REM SET BLASTER=A220 I5 D1 P330'+@CRLF+
'REM where:'+@CRLF+
'REM A specifies the sound blaster'+"'"+'s base I/O port'+@CRLF+
'REM I specifies the interrupt request line'+@CRLF+
'REM D specifies the 8-bit DMA channel'+@CRLF+
'REM P specifies the MPU-401 base I/O port'+@CRLF+
'REM T specifies the type of sound blaster card'+@CRLF+
'REM 1 - Sound Blaster 1.5'+@CRLF+
'REM 2 - Sound Blaster Pro I'+@CRLF+
'REM 3 - Sound Blaster 2.0'+@CRLF+
'REM 4 - Sound Blaster Pro II'+@CRLF+
'REM 6 - SOund Blaster 16/AWE 32/32/64'+@CRLF+
'REM'+@CRLF+
'REM The default value is A220 I5 D1 T3 and P330. If any of the switches is'+@CRLF+
'REM left unspecified, the default value will be used. (NOTE, since all the'+@CRLF+
'REM ports are virtualized, the information provided here does not have to'+@CRLF+
'REM match the real hardware setting.) NTVDM supports Sound Blaster 2.0 only.'+@CRLF+
'REM The T switch must be set to 3, if specified.'+@CRLF+
'SET BLASTER=A220 I5 D1 P330 T3'+@CRLF+
@CRLF+
'REM To disable the sound blaster 2.0 support on NTVDM, specify an invalid'+@CRLF+
'REM SB base I/O port address. For example:'+@CRLF+
'REM SET BLASTER=A0'+@CRLF
$Handle = FreeFileHandle()
$OpenFile = Open($Handle, $File,5)
$WL = WriteLine($Handle,$WL + @CRLF)
$CloseFile = Close($Handle)
Exit @ERROR
EndFunction
But Not PHP Taggs

PHP Code
Function DefaultAutoexecNT($Ext,$Bak)
  If @INWIN=2 Exit 1 EndIf
  Dim $File,$FileBackup,$WL
  Dim $Handle,$OpenFile,$CloseFile
  $File = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Ext
  $FileBackup = '%SYSTEMROOT%\SYSTEM32\AUTOEXEC.'+$Bak
  If Exist($FileBackup)
  ;Assumes a valid backup already exists so we will now create all new default file
  Else
	If Exist($File)
		Move $File $FileBackup
		If @ERROR Exit @ERROR EndIf
	EndIf
  EndIf
  $WL='@echo off'+ @CRLF+
  @CRLF+
  'REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.'+@CRLF+
  'REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a'+@CRLF+
  'REM different startup file is specified in an application'+"'"+'s PIF.'+@CRLF+
  @CRLF+
  'REM Install CD ROM extensions'+@CRLF+
  'lh %SystemRoot%\system32\mscdexnt.exe'+@CRLF+
  @CRLF+
  'REM Install network redirector (load before dosx.exe)'+@CRLF+
  'lh %SystemRoot%\system32\redir'+@CRLF+
  @CRLF+
  'REM Install DPMI support'+@CRLF+
  'lh %SystemRoot%\system32\dosx'+@CRLF+
  @CRLF+
  'REM The following line enables Sound Blaster 2.0 support on NTVDM.'+@CRLF+
  'REM The command for setting the BLASTER environment is as follows:'+@CRLF+
  'REM	SET BLASTER=A220 I5 D1 P330'+@CRLF+
  'REM	where:'+@CRLF+
  'REM		A	specifies the sound blaster'+"'"+'s base I/O port'+@CRLF+
  'REM		I	specifies the interrupt request line'+@CRLF+
  'REM		D	specifies the 8-bit DMA channel'+@CRLF+
  'REM		P	specifies the MPU-401 base I/O port'+@CRLF+
  'REM		T	specifies the type of sound blaster card'+@CRLF+
  'REM				 1 - Sound Blaster 1.5'+@CRLF+
  'REM				 2 - Sound Blaster Pro I'+@CRLF+
  'REM				 3 - Sound Blaster 2.0'+@CRLF+
  'REM				 4 - Sound Blaster Pro II'+@CRLF+
  'REM				 6 - SOund Blaster 16/AWE 32/32/64'+@CRLF+
  'REM'+@CRLF+
  'REM	The default value is A220 I5 D1 T3 and P330.  If any of the switches is'+@CRLF+
  'REM	left unspecified, the default value will be used. (NOTE, since all the'+@CRLF+
  'REM	ports are virtualized, the information provided here does not have to'+@CRLF+
  'REM	match the real hardware setting.)  NTVDM supports Sound Blaster 2.0 only.'+@CRLF+
  'REM	The T switch must be set to 3, if specified.'+@CRLF+
  'SET BLASTER=A220 I5 D1 P330 T3'+@CRLF+
  @CRLF+
  'REM To disable the sound blaster 2.0 support on NTVDM, specify an invalid'+@CRLF+
  'REM SB base I/O port address.  For example:'+@CRLF+
  'REM	SET BLASTER=A0'+@CRLF
  $Handle = FreeFileHandle()
  $OpenFile = Open($Handle, $File,5)
  $WL = WriteLine($Handle,$WL + @CRLF)
  $CloseFile = Close($Handle)
  Exit @ERROR
EndFunction  

I'm in FF


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
it's handled in the CSS iirc


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
hard coded not the style sheets ?
or in a template file or something?


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
css can define height and width; it's what makes the code/quote tags as wide as they are, and i think it also handles height.

If it's hardcoded, it'd be in libs/ubbthreads.inc.php


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 206 guests, and 158 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)