Template talk:Lua: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens →Unusual and Strange?: new section |
>NXTBoy |
||
Line 7: | Line 7: | ||
How is an indentation of 3 strange? It's what I use everywhere for Lua, it's between 2 and 4, which are often used, and it's what the studio uses by default anyways... <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">26 February 2012</div></div> | How is an indentation of 3 strange? It's what I use everywhere for Lua, it's between 2 and 4, which are often used, and it's what the studio uses by default anyways... <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">26 February 2012</div></div> | ||
:I guess it just feels wrong to me. Pretty much all the code I see is indented by 4 spaces / a 4-space tab. I guess you can change it back to 3 if you really want. I don't think "it matches studio" is a valid excuse, since at present, the colors don't match anyway.{{User:NXTBoy/sig|date=08:43, 28 February 2012 (UTC)}} | |||
== Problem with leading and trailing whitespace == | |||
There's a problem with hiding the code tag in a template like this - the parameters to <nowiki>{{#tag}}</nowiki> get trimmed, so we lose leading and trailing whitespace in code. Not normally an issue, but I can forsee corner cases. {{User:NXTBoy/sig|date=08:43, 28 February 2012 (UTC)}} |
Revision as of 08:43, 28 February 2012
Great!
Nice thing you did there. Sad how it's not supported on IE and webkit (Safari and Google Chrome), but they'll eventually be supported, anyways.
26 February 2012
- If we use this everywhere, it also makes transitions between syntax highlighters easier.
Unusual and Strange?
How is an indentation of 3 strange? It's what I use everywhere for Lua, it's between 2 and 4, which are often used, and it's what the studio uses by default anyways...
26 February 2012
- I guess it just feels wrong to me. Pretty much all the code I see is indented by 4 spaces / a 4-space tab. I guess you can change it back to 3 if you really want. I don't think "it matches studio" is a valid excuse, since at present, the colors don't match anyway.
Problem with leading and trailing whitespace
There's a problem with hiding the code tag in a template like this - the parameters to {{#tag}} get trimmed, so we lose leading and trailing whitespace in code. Not normally an issue, but I can forsee corner cases.