File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,6 +406,24 @@ def script_toggleReportEmphasis(self,gesture):
406406 # Translators: Input help mode message for toggle report emphasis command.
407407 script_toggleReportEmphasis .__doc__ = _ ("Toggles on and off the reporting of emphasis" )
408408 script_toggleReportEmphasis .category = SCRCAT_DOCUMENTFORMATTING
409+
410+ @script (
411+ # Translators: Input help mode message for toggle report marked (highlighted) content command.
412+ description = _ ("Toggles on and off the reporting of marked (highlighted) text" ),
413+ category = SCRCAT_DOCUMENTFORMATTING ,
414+ )
415+ def script_toggleReportHighlightedText (self , gesture ):
416+ shouldReport : bool = not config .conf ["documentFormatting" ]["reportHighlight" ]
417+ config .conf ["documentFormatting" ]["reportHighlight" ] = shouldReport
418+ if shouldReport :
419+ # Translators: The message announced when toggling the report marked (highlighted text)
420+ # document formatting setting.
421+ state = _ ("report marked (highlighted) text on" )
422+ else :
423+ # Translators: The message announced when toggling the report marked (highlighted text)
424+ # document formatting setting.
425+ state = _ ("report marked (highlighted) text off" )
426+ ui .message (state )
409427
410428 def script_toggleReportColor (self ,gesture ):
411429 if config .conf ["documentFormatting" ]["reportColor" ]:
Original file line number Diff line number Diff line change @@ -2123,7 +2123,7 @@ def makeSettings(self, settingsSizer):
21232123
21242124 # Translators: This is the label for a checkbox in the
21252125 # document formatting settings panel.
2126- highlightText = _ ("Marked (highlighted text)" )
2126+ highlightText = _ ("Mar&ked (highlighted text)" )
21272127 self .highlightCheckBox = fontGroup .addItem (
21282128 wx .CheckBox (self , label = highlightText )
21292129 )
You can’t perform that action at this time.
0 commit comments