Blender Git Loki

Git Commits -> Revision 05417b2

Revision 05417b2 by Sybren A. Stüvel (master)
August 14, 2019, 14:59 (GMT)
Text editor: syntax highlighting + line numbers on by default

The most common use of the text editor seems to be for scripting. Having
line numbers and syntax highlighting enabled by default seems sensible.

Syntax highlighting is now enabled by default, but is automatically
disabled when the datablock has a non-highlighted extension.
Highlighting is enabled for filenames like:
- Text
- Text.001
- somefile.py
and is automatically disabled when the datablock has an extension for
which Blender has no syntax highlighter registered.

Reviewers: billreynish, campbellbarton

Subscribers: brecht, billreynish

Differential Revision: https://developer.blender.org/D5472

Commit Details:

Full Hash: 05417b22206c479b5ebe8ac8e7dd73ae154c8c96
Parent Commit: 72eb70f
Lines Changed: +162, -8

14 Modified Paths:

/release/scripts/startup/bl_ui/space_text.py (+9, -2) (Diff)
/source/blender/blenlib/BLI_path_util.h (+2, -0) (Diff)
/source/blender/blenlib/BLI_string_utils.h (+1, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+18, -0) (Diff)
/source/blender/blenlib/intern/string_utils.c (+15, -0) (Diff)
/source/blender/editors/include/ED_text.h (+4, -0) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -0) (Diff)
/source/blender/editors/space_text/text_draw.c (+8, -6) (Diff)
/source/blender/editors/space_text/text_format.c (+38, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+17, -0) (Diff)
/source/blender/makesrna/intern/rna_text.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_text_api.c (+10, -0) (Diff)
/tests/gtests/blenlib/BLI_path_util_test.cc (+15, -0) (Diff)
/tests/gtests/blenlib/BLI_string_test.cc (+21, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021