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: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

Can you support tabs in code?

#1 Post by henvu50 »

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: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Can you support tabs in code?

#2 Post by Imperf3kt »

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

Twitter

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

Re: Can you support tabs in code?

#3 Post by henvu50 »

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: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Can you support tabs in code?

#4 Post by Imperf3kt »

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

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users