Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-10-15 03:37:04 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-10-15 03:37:04 +0400
commit4ac462990516d2d6996ee402f27559bce16deac2 (patch)
tree80400154c078a82e8e2addb613c25906e914b8f6 /source/blender/blenkernel/BKE_text.h
parent9d579591a3d5352b70c27073a0df3dd598cf5182 (diff)
a patch for the Text editor contributed by themeyers.
adds new features for indenting and commenting. Note: I am not sure if the best menu spot for these features is under the Select menu, but we can argue about that later. They do work on a selection, though. from the mailing list post: 1&2. Added Indent/Unindent under Edit->Select just select the text you want to indent and go to the menu ( note if nothing is selected Indent will just indent ( tab ) the line the line ) 3&4. Added Comment/Uncomment to the same menu same applies as above 5. Added Tab setting on the menu bar in text editor Sets the number of spaces a tab == changing the setting will change the hole script 6. Added Auto indent when you hit enter it goes to the next line at the same tab number and the line above it ( needs more testing and input)
Diffstat (limited to 'source/blender/blenkernel/BKE_text.h')
-rw-r--r--source/blender/blenkernel/BKE_text.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h
index e1badf34ce4..c693b1f83c3 100644
--- a/source/blender/blenkernel/BKE_text.h
+++ b/source/blender/blenkernel/BKE_text.h
@@ -88,6 +88,15 @@ void txt_find_panel (struct SpaceText *st, int again);
void run_python_script (struct SpaceText *st);
int jumptoline_interactive (struct SpaceText *st);
void txt_export_to_object (struct Text *text);
+void indent_paste (struct Text *text);
+void unindent (struct Text *text);
+void comment (struct Text *text);
+void uncommen (struct Text *text);
+void indent (struct Text *text, char *in_buffer);
+void unindent_lines (struct Text *text, char *in_buffer);
+void comment_paste (struct Text *text, char *in_buffer);
+void uncomment_paste (struct Text *text, char *in_buffer);
+//void set_tabs (struct Text *text);
/* Undo opcodes */
@@ -130,4 +139,3 @@ void txt_export_to_object (struct Text *text);
#endif
#endif
-