Tokens Related to the Format Menu

Mathematica allows any front end command to be executed programmatically from within the kernel by sending an appropriate front end token. There are tokens for all standard menu commands—as well as ones not accessible directly with the default front end menu configuration.

ReferenceReference

FrontEndTokenExecute execute a menu-like command specified by a front end token

"StyleOther" open the Custom Style dialog

"ClearCellOptions" clear all formatting from the selected text

"OptionsDialog" open the Option Inspector

"StyleDefinitionsOther" open a dialog to pick a custom stylesheet

"EditStyleDefinitions" open the Style Definitions dialog to edit a stylesheet

"FontPanel" open the Font dialog to pick a font

"PlainFont" remove any font option settings from a selection

"FontSizeDialog" open the Font Size dialog

"FontColorDialog" open the Color dialog to edit text color

"BackgroundDialog" open the Color dialog to edit background color

New to Mathematica? Find your learning path »
Have a question? Ask support »