Highlight - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DocumentTools[Canvas][Script]

  

Highlight

  

highlight all or part of a math canvas element

  

HighlightOff

  

remove highlights from all or part of a math canvas element

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Highlight(script,ex,options)

HighlightOff(script,ex,options)

Parameters

script

-

DocumentTools:-Canvas:-Script object

ex

-

(optional) a subexpression of the active math expression

id

-

(optional) id=string; id of a particular marked subexpression

Description

• 

The Highlight command adds a background color to highlight all or part of the math in the active canvas element.   

• 

The HighlightOff command removes the highlights added by a previous call to Highlight.

• 

A "canvas" is an interactive section of a Maple document created by the NewCanvas command, or a shared web-based Maple Learn document.   See the Script command for a more complete description.

Examples

withDocumentTools:-Canvas:

cvNewCanvasEinstein:

ShowCanvascv

scScript:

SetActivesc,0:0

SetMathsc,E=mc2,where=below

Highlightsc,c

Annotatesc,the speed of light

HighlightOffsc

Highlightsc,m

Annotatesc,mass

HighlightOffsc

Highlightsc,E

Annotatesc,energy

HighlightOffsc

Annotatesc,

recreate the whole example with all of the script steps attached so that it can be played back in Maple Learn

cv2NewCanvasEinstein,sc:

ShareCanvascv2

Compatibility

• 

The DocumentTools[Canvas][Script][Highlight] and DocumentTools[Canvas][Script][HighlightOff] commands were introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

Math

NewCanvas

Script

SetActive

SetMath

SetText