Add block format that completely ignores a line of text in the tokenizer

This commit is contained in:
Veronica Berglyd Olsen
2024-02-10 15:40:30 +01:00
parent 467772c489
commit 9c1bdef9ad
5 changed files with 41 additions and 23 deletions
+7
View File
@@ -781,6 +781,13 @@ class GuiMainMenu(QMenuBar):
lambda: self.requestDocAction.emit(nwDocAction.BLOCK_COM)
)
# Format > Ignore Text
self.aFmtComment = self.fmtMenu.addAction(self.tr("Toggle Ignore Text"))
self.aFmtComment.setShortcut("Ctrl+Shift+D")
self.aFmtComment.triggered.connect(
lambda: self.requestDocAction.emit(nwDocAction.BLOCK_IGN)
)
# Format > Remove Block Format
self.aFmtNoFormat = self.fmtMenu.addAction(self.tr("Remove Block Format"))
self.aFmtNoFormat.setShortcuts(["Ctrl+0", "Ctrl+Shift+/"])