Added option to disable colour highlighting of emphasised text

This commit is contained in:
Veronica K. B. Olsen
2020-06-29 17:33:36 +02:00
parent 89591561fd
commit a6a28b41d1
3 changed files with 22 additions and 2 deletions
+5
View File
@@ -126,6 +126,7 @@ class Config:
self.bigDocLimit = 800
self.showFullPath = True
self.highlightQuotes = True
self.highlightEmph = True
self.fmtApostrophe = nwUnicode.U_RSQUO
self.fmtSingleQuotes = [nwUnicode.U_LSQUO, nwUnicode.U_RSQUO]
@@ -469,6 +470,9 @@ class Config:
self.highlightQuotes = self._parseLine(
cnfParse, cnfSec, "highlightquotes", self.CNF_BOOL, self.highlightQuotes
)
self.highlightEmph = self._parseLine(
cnfParse, cnfSec, "highlightemph", self.CNF_BOOL, self.highlightEmph
)
## Backup
cnfSec = "Backup"
@@ -590,6 +594,7 @@ class Config:
cnfParse.set(cnfSec,"bigdoclimit", str(self.bigDocLimit))
cnfParse.set(cnfSec,"showfullpath", str(self.showFullPath))
cnfParse.set(cnfSec,"highlightquotes", str(self.highlightQuotes))
cnfParse.set(cnfSec,"highlightemph", str(self.highlightEmph))
## Backup
cnfSec = "Backup"