diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-03-27 09:14:23 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-03-27 09:14:23 +1100 |
commit | 277230dd1ecc8a0f4a359160ad13a68b84dc9e9e (patch) | |
tree | 3c0f9d5f1d1a3b6cb2998d85cc5f2e84ed120316 | |
parent | 0abdcc845d2d5cdf431f0dfedf2885898aadcb27 (diff) | |
download | scintilla-mirror-277230dd1ecc8a0f4a359160ad13a68b84dc9e9e.tar.gz |
Ensure default style copied to all styles so that font attributes work.
-rw-r--r-- | cocoa/ScintillaTest/AppController.mm | 2 |
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"]; |