Skip to main content

Framed

Wolfram Kernel
Execution environment

Acts like a Style box, but wrapped into a frame

Framed[expr_, opts__]

The argument opts contains directives for the formatted output. The following options are supported

  • Background->RGBColor[...] adds background to the wrapped expression
warning

Styling options are currently quite limited

Example

Highlight prime numbers in the list

Table[If[PrimeQ[i], Framed[i, Background->Yellow], i], {i, 1, 100}]

Or this neat example from Wolfram Research

NestList[Framed, x, 6]