Add block format that completely ignores a line of text in the tokenizer
This commit is contained in:
@@ -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+/"])
|
||||
|
||||
Reference in New Issue
Block a user