diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-13 20:11:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-13 20:11:28 +0400 |
commit | 2d6481c41c446ba3cc3f635944990d1b1927974f (patch) | |
tree | 68e4dba9c8868323a48073a78ebda5752e0c138b /source/blender/makesdna | |
parent | ec2cbb268906faf81c4808ede188d9ecf9bf4129 (diff) |
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...
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_text_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index a04c0d7cbcc..c6ba84b9a41 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -256,7 +256,8 @@ typedef struct SpaceText { int tabnumber; int currtab_set; - /* had to make my 64 bits some how */ + int showsyntax; + int unused_padd; float pix_per_line; 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; diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index c29c090005d..51089cfc636 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -88,8 +88,10 @@ typedef struct ThemeSpace { char normal[4]; char vertex_size, facedot_size; - char bracket[4]; /* bracket matching */ - char pad1[2], bpad2[4]; + char bpad[2]; + + char syntaxl[4], syntaxn[4], syntaxb[4]; //syn- + char syntaxv[4], syntaxc[4]; //tax } ThemeSpace; |