From 1c15808d6a1a3f56617c11cdab4a1ee0882cad17 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 27 Mar 2012 09:14:23 +1100 Subject: Ensure default style copied to all styles so that font attributes work. --- cocoa/ScintillaTest/AppController.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa') 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"]; -- cgit v1.2.3