Creating a code snippet
To create a code snippet, you must first be logged in to IgorExchange. If you do not have an account, you must first register and then login.
- Click on the Create content link in your navigation block. Then click on Code Snippet.
- Fill in the title of your code snippet. Give your code snippet a descriptive title but try to keep it relatively short.
- In the categories section, select one or more types for your code snippet. You can select multiple types by using control-click (Windows) or command-click (Macintosh). For the Supported Igor version category, select the earliest version of Igor Pro on which you know your code snippet will run. If you have tested your snippet on only one version, select that version of Igor Pro.
- Enter a description of your code snippet and the code itself in the Body section. You should surround any Igor Pro code with <igor></igor> tags so that the code will be highlighted as Igor Pro code. For more information on using HTML tags and code syntax highlighting in your code snippet, see these tips.
- If you are editing a code snippet originally created by someone else or if you are making major changes to a code snippet you have created, it is a good idea to write a quick note in the Log message field. This field will not be visible to regular users, however IgorExchange administrators can see values in this field and use these log messages to make sure that changes to a code snippet are intentional and not the result of spam, etc.
- When you are finished creating your code snippet, click the Submit button.
