AE Creations on mozdev.org

Home | Blog | Contact

clippings

Mozilla Extensions

Resources

hosted on
mozdev.org

Placeholders in Clippings

You can define placeholders inside a clipping that you will be prompted to fill in when you paste the clipping.

Placeholders are essentially variables that appear in the clipping text in the format $[variable_name]. Valid variable names can contain letters (lowercase or uppercase), digits (0-9) and underscores. Example clipping with placeholders:

Hello, $[YourName], I'm glad you're coming to the club meeting at $[meeting_time]. See you $[2nite]!

When you paste a clipping with placeholders, you will be prompted to fill in the value for each placeholder in the clipping. If you want the placeholders in the clipping pasted exactly as they are, with no prompting and substitution, the clipping name should be prefixed with [NOSUBST].

Predefined Placeholders

There are six predefined placeholders you can use in your clippings. These predefined placeholders will be automatically substituted with their expected values, as described below, when you paste the clipping.


Back to the Help Index

For questions or comments about extensions by AE Creations, please send a message to the AE Creations forums.
Copyright © 2004-2012. All rights reserved. Terms of Use & Privacy Policy.