Macaulay2 » Documentation
Packages » Text :: M2CODE
next | previous | forward | backward | up | index | toc

M2CODE -- CODE object with syntax highlighting

Synopsis

Description

Returns a CODE object with its "class" attribute set to "language-macaulay2" so that it will appear with syntax highlighting in the html documentation. For example,
M2CODE "ideal(x*z - y^2, y*w - z^2, x*w - y*z)"
will appear as
ideal(x*z - y^2, y*w - z^2, x*w - y*z)

Ways to use M2CODE :

For the programmer

The object M2CODE is a method function.