From 2d6481c41c446ba3cc3f635944990d1b1927974f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 13 May 2005 16:11:28 +0000 Subject: TextEditor: syntax color support. Patch provided by Ricki Myers. Works quite obvious, see Theme editor too! Notes about the provided code; - The default syntax colors were screaming! Toned it down to match the default dark on lightgrey background better. - Added: initializing colors in saved themes (usiblender.c) - The implementation of the button for this option was quite clumsy... Blender UI options services this a lot easier. (Same fixed for 'line numbers' option) - Bracket matching now uses as color a mix of backdrop and the selected-text color. Noticed my texteditor did it too... -> I really miss comments in code describing a little bit the thought process behind the code. Like a short introduction on this feature in the top of the drawtext.c, little remarks on new functions. ALso in patch tracker or the mailinglist no docs was mentioned? -> drawtext.c now gets messy quickly... lack of overview, structure, and confusing mix of personal coding styles. For not-active supported code dangerous... --- source/blender/makesdna/DNA_text_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_text_types.h') diff --git a/source/blender/makesdna/DNA_text_types.h b/source/blender/makesdna/DNA_text_types.h index ea3ce237909..8f2b40f7ff6 100644 --- a/source/blender/makesdna/DNA_text_types.h +++ b/source/blender/makesdna/DNA_text_types.h @@ -41,6 +41,7 @@ typedef struct TextLine { struct TextLine *next, *prev; char *line; + char *format; int len, blen; } TextLine; -- cgit v1.2.3