WLJS LogoWLJS Notebook

Style

Wolfram Kernel

Styling box used as a decoration for an arbitrary Wolfram Expressions

Style[expr_, opts__]

Expressions are editable

The argument opts contains directives for the formatted output.

Options

  • Background
  • FontFamily
  • FontSize

Directives

  • _Integer font size
  • _RGBColor font color
  • Bold
  • Italic

Example

Style[1, Background->Yellow]

For string options are much richer

Style["ddd", Background->LightBlue, FontFamily->"Monospace", Bold, Red, Italic,  20]

Hamlet's soliloquy, with repeated words successively has more contrast background

With[{data = ExampleData[{"Text", "ToBeOrNotToBe"}, "Words"]}, 
  Take[MapIndexed[Style[#, 4 Count[Take[data, First[#2]], #]] &, data], 100]
]

Supported output forms

On this page