QScintilla/Lexers/LexerPygments.py

changeset 5571
2e4084a51721
parent 5389
9b1c800daff3
child 6038
b9d2063e610e
--- a/QScintilla/Lexers/LexerPygments.py	Sun Feb 26 15:57:02 2017 +0100
+++ b/QScintilla/Lexers/LexerPygments.py	Tue Feb 28 19:10:39 2017 +0100
@@ -351,6 +351,8 @@
                      PYGMENTS_MULTILINECOMMENT]:
             if Utilities.isWindowsPlatform():
                 f = QFont("Comic Sans MS", 9)
+            elif Utilities.isMacPlatform():
+                f = QFont("Courier", 11)
             else:
                 f = QFont("Bitstream Vera Serif", 9)
             if style == PYGMENTS_PREPROCESSOR:
@@ -360,6 +362,8 @@
         if style in [PYGMENTS_STRING, PYGMENTS_CHAR]:
             if Utilities.isWindowsPlatform():
                 return QFont("Comic Sans MS", 10)
+            elif Utilities.isMacPlatform():
+                f = QFont("Courier", 11)
             else:
                 return QFont("Bitstream Vera Serif", 10)
         

eric ide

mercurial