13 from PyQt6.QtCore import Qt, pyqtSlot |
13 from PyQt6.QtCore import Qt, pyqtSlot |
14 from PyQt6.QtWidgets import QHeaderView, QTreeWidgetItem |
14 from PyQt6.QtWidgets import QHeaderView, QTreeWidgetItem |
15 |
15 |
16 from eric7 import Preferences |
16 from eric7 import Preferences |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
|
18 from eric7.QScintilla import Lexers |
18 |
19 |
19 from .ConfigurationPageBase import ConfigurationPageBase |
20 from .ConfigurationPageBase import ConfigurationPageBase |
20 from .Ui_EditorHighlightersPage import Ui_EditorHighlightersPage |
21 from .Ui_EditorHighlightersPage import Ui_EditorHighlightersPage |
21 |
22 |
22 |
23 |
44 |
45 |
45 try: |
46 try: |
46 self.extsep = os.extsep |
47 self.extsep = os.extsep |
47 except AttributeError: |
48 except AttributeError: |
48 self.extsep = "." |
49 self.extsep = "." |
49 |
|
50 from eric7.QScintilla import Lexers |
|
51 |
50 |
52 self.extras = ["-----------", self.tr("Alternative")] |
51 self.extras = ["-----------", self.tr("Alternative")] |
53 self.editorLexerCombo.addItem("") |
52 self.editorLexerCombo.addItem("") |
54 self.editorLexerCombo.addItem(EricPixmapCache.getIcon("fileText"), "Text") |
53 self.editorLexerCombo.addItem(EricPixmapCache.getIcon("fileText"), "Text") |
55 for lang in sorted(lexers.keys()): |
54 for lang in sorted(lexers.keys()): |