Template talk:Code and output: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
No edit summary
>NecroBumpist
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
I think it looks better at 60%-40% for Code-Output than 50%-50%. What do you think?<div style="border-top: 1px dotted #AAA; color:#000000; font-size:10px; overflow: hidden;">([[User:Merlin11188|Merlin11188]] | [http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=128839 Send Message] | [http://wiki.roblox.com/index.php/Special:EmailUser/Merlin11188 E-mail] |Wiki Writer) — 06:40, January 19, 2012 - UTC</div>
I think it looks better at 60%-40% for Code-Output than 50%-50%. What do you think?<div style="border-top: 1px dotted #AAA; color:#000000; font-size:10px; overflow: hidden;">([[User:Merlin11188|Merlin11188]] | [http://www.roblox.com/My/PrivateMessage.aspx?RecipientID=128839 Send Message] | [http://wiki.roblox.com/index.php/Special:EmailUser/Merlin11188 E-mail] |Wiki Writer) — 06:40, January 19, 2012 - UTC</div>
:It depends. My OCD says that 50:50 looks nicer, since it divides the page cleanly. For long passages of code, it does feel like a waste of space. {{User:NXTBoy/sig|date=09:14, 19 January 2012 (UTC)}}
:It depends. My OCD says that 50:50 looks nicer, since it divides the page cleanly. For long passages of code, it does feel like a waste of space. {{User:NXTBoy/sig|date=09:14, 19 January 2012 (UTC)}}
::I've added an optional parameter to make the output shrink to fit its content {{User:NXTBoy/sig|date=09:32, 19 January 2012 (UTC)}}
== Errors ==
Do you think you could add an error argument and make it show the content of the output box in red if it is true? <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">25 February 2012</div></div>
== Improper syntax highlighting when using the "fit" option. ==
Why isn't the {{`|code}} portion highlighted at all when {{`|fit}} is set?
{{code and output
|fit=code
|code=
print(shouldnt_this_be_highlighted);
|output=
Yes?
}}
{{User:NecroBumpist/Signature|date=22:41, 16 April 2012 (UTC)}}

Latest revision as of 22:41, 16 April 2012

Size of the divs

I think it looks better at 60%-40% for Code-Output than 50%-50%. What do you think?

(Merlin11188 | Send Message | E-mail |Wiki Writer) — 06:40, January 19, 2012 - UTC
It depends. My OCD says that 50:50 looks nicer, since it divides the page cleanly. For long passages of code, it does feel like a waste of space.
09:14, 19 January 2012 (UTC)
I've added an optional parameter to make the output shrink to fit its content
09:32, 19 January 2012 (UTC)

Errors

Do you think you could add an error argument and make it show the content of the output box in red if it is true?

25 February 2012

Improper syntax highlighting when using the "fit" option.

Why isn't the code portion highlighted at all when fit is set?

print(shouldnt_this_be_highlighted);
Yes?
NecroBumpist (Writer) Discuss my contributions at my talk page.22:41, 16 April 2012 (UTC)