Author Topic: Syntax error  (Read 8286 times)

blasphemy!
Tabs just create too much spacing for my tastes.

Code: [Select]
if(%this $= "code")
    actuallyDoes("nothing");
else
    iAmNot("creative", "enough");
to("keep going with", "an example")

vs

Code: [Select]
if(%this $= "code")
actuallyDoes("nothing");
else
iAmNot("creative", "enough");
to("keep going with", "an example");

The tab is just too big for my tastes. Two spaces is a little too small because teletype STILL isn't quite a monospaced font, but w/e. IMO the less space doesn't harm readability and honestly makes the code look better.
« Last Edit: August 06, 2014, 03:51:19 PM by $trinick »

I'm on a Mac and I script with TextEdit and it works fine.

The thing causing errors such as this:


Is because you are saving it as a rich text document, not plain text. To fix this open the file and click Format > Make Plain Text.

No i saved it as plain text and I got an error saying "ook##"
Textedit doesnt work for me

Upload your console.log file or download Sublime Text. The latter one is almost guaranteed to work.

Thanks a lot, it was text edit that wasnt letting the script work. I downloaded sublime text and now it works perfectly.

The tab is just too big for my tastes. Two spaces is a little too small because teletype STILL isn't quite a monospaced font, but w/e. IMO the less space doesn't harm readability and honestly makes the code look better.
Only pressing one key > having to press two keys. A beginner especially might find this two spaces harder to create consistency
If you want smaller tabs, most code editors allow you do adjust tab size

Only pressing one key > having to press two keys. A beginner especially might find this two spaces harder to create consistency
If you want smaller tabs, most code editors allow you do adjust tab size

I mean, I can tap my space bar twice in approximately the same time frame it takes me to move my ring finger off of the a key onto tab, press it, and move it back. As I said it, it's just preference, neither is inherently better or worse.

Most code editors do allow you to adjust tab size, but when viewing it outside of that code editor (e.g. on GitHub) it looks bad to me.

Also, when I used to be gung-ho for tabs I used to have to copy paste a tab from notepad into the editor box on the BLF and then ctrl+v every time I wanted to indent. Now I don't even have to think about it.



loving Google Chrome. It literally auto converts tabs to 3 spaces. Highlight that stuff and see.
« Last Edit: August 06, 2014, 12:59:47 PM by $trinick »

loving Google Chrome. It literally auto converts tabs to 3 spaces. Highlight that stuff and see.
That's actually done by SMF it looks like... I tried it on IE and it does the same thing.

That's actually done by SMF it looks like... I tried it on IE and it does the same thing.
Oh, alright then. It still ruined my example of how tabs are inferior to spaces.. it literally used spaces :/

Code: [Select]
if(%a)
echo(%b);
else
echo(%c);

Code blocks retain tabs.

Code: [Select]
if(%a)
echo(%b);
else
echo(%c);

Code blocks retain tabs.

There we go :D