| Line 294... |
Line 294... |
| 294 |
[prefs addObserver:self forKeyPath:HighlightIntervalKey options:NSKeyValueObservingOptionNew context:NULL];
|
294 |
[prefs addObserver:self forKeyPath:HighlightIntervalKey options:NSKeyValueObservingOptionNew context:NULL];
|
| 295 |
[prefs addObserver:self forKeyPath:highlightCurrentLine options:NSKeyValueObservingOptionNew context:NULL];
|
295 |
[prefs addObserver:self forKeyPath:highlightCurrentLine options:NSKeyValueObservingOptionNew context:NULL];
|
| 296 |
[prefs addObserver:self forKeyPath:showLineNumbersKey options:NSKeyValueObservingOptionNew context:NULL];
|
296 |
[prefs addObserver:self forKeyPath:showLineNumbersKey options:NSKeyValueObservingOptionNew context:NULL];
|
| 297 |
[prefs addObserver:self forKeyPath:editorSelectionBackgroundColorKey options:NSKeyValueObservingOptionNew context:NULL];
|
297 |
[prefs addObserver:self forKeyPath:editorSelectionBackgroundColorKey options:NSKeyValueObservingOptionNew context:NULL];
|
| 298 |
|
298 |
|
| - |
|
299 |
if(syntaxHighlightingEnabled) {
|
| 299 |
[self setTextColor:shColorNormal];
|
300 |
[self setTextColor:shColorNormal];
|
| 300 |
[self setInsertionPointColor:shColorCursor];
|
301 |
[self setInsertionPointColor:shColorCursor];
|
| - |
|
302 |
} else {
|
| - |
|
303 |
[self setTextColor:[NSColor blackColor]];
|
| - |
|
304 |
[self setInsertionPointColor:[NSColor blackColor]];
|
| 301 |
|
305 |
}
|
| 302 |
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
|
306 |
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
|
| 303 |
[[self layoutManager] setAllowsNonContiguousLayout:YES];
|
307 |
[[self layoutManager] setAllowsNonContiguousLayout:YES];
|
| 304 |
#endif
|
308 |
#endif
|
| 305 |
|
309 |
|
| 306 |
|
310 |
|