Formatting Code in Forum Posts
hrodstein
Here's a tip for new IgorExchange users. For Igor code to show up correctly in posts, you should use the Insert Code Snippet toolbar widget:
Clicking it will open an editor where you can enter Igor code.
You also need to choose the Igor language from the popup menu at the top of the widget:
Click OK to see the result in your posting:
Print "Hello World"
More importantly, without using the Insert Code Snippet widget, your code may be garbled because the < character is interpreted as HTML.
I generally try to align my Igor code // comment delimiters along tab stops, but the tab spacing in IgorExchange is bigger. Similarly, the Igor one-tab code indentations get enlarged in IgorExchange. I would like to see the default settings made compatible.
July 13, 2012 at 03:51 pm - Permalink
This is a good tip!
Thanks,
Matt
July 13, 2012 at 04:00 pm - Permalink
The size of a tab character is determined by your web browser. As far as I know there is nothing that IgorExchange could do to make it smaller. Likewise, because the font used in your web browser and in your Igor procedure window are likely not the same size and face, the alignment may be different in the two. I think this is made worse by the fact that Igor's default font in procedure windows is not a fixed width font, but the font used on IgorExchange within igor tags is fixed width. I don't know why Igor doesn't use a fixed width font like most all other code editors do.
July 13, 2012 at 04:20 pm - Permalink
November 1, 2012 at 12:33 pm - Permalink
Thanks--A few days ago I posted my first entry--without reading the instructions. Some kind person fixed it for me. I thank them
November 11, 2012 at 05:33 am - Permalink
January 11, 2013 at 11:13 am - Permalink
Handling of the tab key is a function of your browser. I recommend you write your code in Igor or another text editor first. That's what I typically do.
January 11, 2013 at 02:06 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
January 11, 2013 at 02:08 pm - Permalink
	Indented	// Uses HTML entity &#09;
	 works in Safari 5.17 and Internet Explorer 9.07 but may not work in all browsers.
January 11, 2013 at 02:12 pm - Permalink