Attic:Extensions:2.5/Py/Scripts/Text Editor/Smart Tabs
2011年1月9日 (日) 04:40時点におけるwiki>Mindrones botによる版 (Bot: Automated text replacement (-&group_id=153&atid=468 +); cosmetic changes)
UI location | Group: Text Editor | ||
---|---|---|---|
Version | 1.0 | Author(s) | Chris Foster (Kira Vakaan) |
Blender | 2.52.5 Rev:#30120 | License | GPL |
File name | text_smart_line_break.py |
---|
Links | http://projects.blender.org/tracker/index.php?func=detail&aid=22373 |
---|
Information
Installation
- Drop text_smart_line_break.py into the 2.52/scripts/addons folder
- Enable the Add-On from the Add-Ons tab in the User Preferences window
Use
After installation, the functionality provided by the Add-On is available from any Text Editor window. Press the return key to use it.
Other Information
When enabled, this Add-On will allow Text Editor windows to use "smart tabs". When the user presses the return key, the new line will automatically be indented with the whitespace that preceded the line before it.
There are a few special cases that the script takes into account. First, the script provides the old "text.line_break" functionality if Text.tabs_as_spaces is not set. Second, the script automatically unindents after lines that start with "return", "break", or "continue". And finally, the script automatically indents after lines that end with ":".
History
- 2010-5-29: Moved to Contrib Tracker.
- 2010-5-24: Created this BlenderWiki page.
- 2010-5-20: Uploaded the script to the Blender Extensions Upload Tracker.
Links and Support
- Questions, comments, suggestions, and bug reports should be sent to the author's email address.
- Link to the script's page in the Contrib Tracker. Download the script from there.
- Back to Extensions:2.5/Py/Scripts