Function Repository Resource:

HighlighterPalette

Source Notebook

Create a palette with a button and a color slider for setting a background color in the selection

Contributed by: Jayanta Phadikar and Kunal Khadke

ResourceFunction["HighlighterPalette"][]

creates a palette with a button and a color slider for setting the background color of a selection.

Details

The typical way to highlight is to use the menu item Format Background Color and then select a color. The palette is helpful for quickly and conveniently highlighting different pieces of code and text while creating a presentation.

Examples

Basic Examples

Create the palette:

In[1]:=
ResourceFunction["HighlighterPalette"][];

Select the relevant parts to be highlighted, choose a color using the color slider and click on the Highlight button:

In[2]:=
Plot[{x^(1/4), x^(3/4), x^(3/2), x^(7/2)}, {x, 0, 2},
 PlotStyle -> {Thick, Automatic, Red, Dashed}, PlotLegends -> Automatic
 ]

Highlight both code and text:

In[3]:=
Manipulate[x^2, {x, 1, 100}]

Publisher

Kunal Khadke

Version History

  • 1.0.1 – 19 July 2022
  • 1.0.0 – 17 August 2021

Related Resources

License Information