Can you support tabs in code?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
henvu50
Veteran
Posts: 322
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Can you support tabs in code?

#1 Post by henvu50 » Wed Aug 22, 2018 1:40 am

I just started using Ren'py and find it odd that tab characters are not supported. Using tab spaces is widely used in many programming languages. Can you guys add this feature? I never imagined I'd be requesting something like this. Kind of funny actually.

I'm using notepad++ and it automatically places a tab on a new line, after pressing enter even if the line before had four spaces instead of a tab.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Can you support tabs in code?

#2 Post by Imperf3kt » Wed Aug 22, 2018 3:12 am

Set notepad++ to python and it'll use four spaces instead.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

henvu50
Veteran
Posts: 322
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Re: Can you support tabs in code?

#3 Post by henvu50 » Wed Aug 22, 2018 3:26 am

Notepad++ has already set the language to Python under the language tab, yet it still does a tab instead of an indent. I have the latest version of notepad++.

I create a new line with four spaces and then some code, when I press enter, the new line has a tab instead of indent. I'll look into the issue more on the web.

But the language is set to Python.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Can you support tabs in code?

#4 Post by Imperf3kt » Wed Aug 22, 2018 3:49 am

Hmm, thats odd.
Take a look in the settings maybe.

The reason tabulated spaces aren't supported is because they're not supported in Python, which Ren'Py uses heavily. At least, thats my understanding, I may be incorrect. I should probably research that...
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

Post Reply

Who is online

Users browsing this forum: No registered users