Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


is an option for Style and Cell that controls how code translations are displayed.


  • The following suboptions can be specified:
  • "BaseStyle""Translation"style to use for rendering translations
    "ContentEnabled"Falsewhether translations are enabled for given content
    "Enabled"Truewhether translations are enabled
    "HighlightStyle""SelectedTranslation"style to use for rendering a translation that is highlighted
    "Language"Automatictarget language for translation
    "Margins"{{5,3},{8,4}}margins to apply around the translation
  • "BaseStyle" can take a style name or a list of style names and options, which it will use to determine properties of the rendered translations such as font, size, and color.
  • "HighlightStyle" applies style attributes that are layered on top of "BaseStyle" whenever the translation is highlighted. The translation may be highlighted by mousing over it or by placing the text cursor within the keyword to be translated.
  • "Enabled" determines whether the translations will be shown. "ContentEnabled" also determines whether translations will be shown. The "Input" style typically has "ContentEnabled"->Automatic set, which allows it to follow the notebook or global level settings of "Enabled".
  • "Language" determines which language to target for the translations. "Language"->Automatic indicates that the current value of the global Language option should be used.
  • "Margins"->{{left,right},{bottom,top}} determines the margins in points surrounding the translation themselves. top is the distance from the top of the translation to the bottom of the line being translated. bottom is the distance from the bottom of the translation to the leading space that precedes the next line. Translations next to one another may overlap; left indicates how much white space a translation creates to the left of its starting point, and right indicates how much white space a highlighted translation creates to the right of its ending point.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Enable a Japanese translation on an output:

Click for copyable input
Introduced in 2015