aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-03-27 09:14:23 +1100
committernyamatongwe <nyamatongwe@gmail.com>2012-03-27 09:14:23 +1100
commit1c15808d6a1a3f56617c11cdab4a1ee0882cad17 (patch)
treeefd200989b1483ca5ce932b9332bdaa934ddf1cd
parente831999b9f7add7acceb4785214807c3113a0375 (diff)
downloadscintilla-mirror-1c15808d6a1a3f56617c11cdab4a1ee0882cad17.tar.gz
Ensure default style copied to all styles so that font attributes work.
-rw-r--r--cocoa/ScintillaTest/AppController.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/ScintillaTest/AppController.mm b/cocoa/ScintillaTest/AppController.mm
index 294704f02..fc8c331c4 100644
--- a/cocoa/ScintillaTest/AppController.mm
+++ b/cocoa/ScintillaTest/AppController.mm
@@ -120,6 +120,8 @@ const char user_keywords[] = // Definition of own keywords, not used by MySQL.
// [mEditor setStringProperty: SCI_STYLESETFONT parameter: STYLE_DEFAULT value: @"Monospac821 BT"]; // Very pleasing programmer's font.
[mEditor setGeneralProperty: SCI_STYLESETSIZE parameter: STYLE_DEFAULT value: 14];
[mEditor setColorProperty: SCI_STYLESETFORE parameter: STYLE_DEFAULT value: [NSColor blackColor]];
+
+ [mEditor setGeneralProperty: SCI_STYLECLEARALL parameter: 0 value: 0];
[mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_DEFAULT value: [NSColor blackColor]];
[mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_COMMENT fromHTML: @"#097BF7"];