「Attic:Extensions:2.5/Py/Scripts/Text Editor/Smart Tabs」の版間の差分

提供: wiki
移動先: 案内検索
(Bot: Automated text replacement (-&group_id=153&atid=468 +); cosmetic changes)
(相違点なし)

2011年1月9日 (日) 04:40時点における版

Smart Tabs
Adds auto-indentation functionality to Text Editor windows.
UI location Group: Text Editor
Version 1.0 Author(s) Chris Foster (Kira Vakaan)
Blender 2.52.5 Rev:#30120 License GPL


Executable information
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