Proteopedia:DIY:Macros

Revision as of 20:36, 30 December 2020 by Wayne Decatur (talk | contribs) (add page stub for adding example code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Macros as a tool

Macros can be used in Proteopedia pages to call commonly used JSmol code. Macro functions can take parameters so that the code is general but can act on the specified item or items. Additional macros can be made.

This page is meant to be a resource for finding and using macros.

Defined MacrosDefined Macros

The currently listing of defined macro functions can be found at Proteopedia:Macros.

Using MacrosUsing Macros

Integrating macro use into JSmol code is straightforward. This example doesn't require any parameter to act.

This example shows how to specify an item or items to act on by passing in a parameter.

Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Wayne Decatur