Can't seem to "Add routine comments" - IDLdoc? [message #88921] |
Thu, 03 July 2014 11:25  |
BLesht
Messages: 89 Registered: March 2007
|
Member |
|
|
Thinking I'd try to be better about documenting new code I tried the "Add Routine Comments" from the "Source" menu to a new file but nothing happens. However, when I try to "Add File Comments," I get the expected insert the file I'm editing. I've looked at Preferences/IDL/IDLdoc and the templates for both the routine and file comments are there. Any idea why I can get one and not the other? The IDLdoc repository with its sub-directories is in my path. I'm running IDL8.2.3 on MacOS10.8.5 and using the IDLDE.
Thanks.
|
|
|
|
Re: Can't seem to "Add routine comments" - IDLdoc? [message #88924 is a reply to message #88921] |
Thu, 03 July 2014 14:49   |
Phillip Bitzer
Messages: 223 Registered: June 2006
|
Senior Member |
|
|
Here's my template (Preferences->IDL->IDLDoc:
;+
; Description...What does this do?
;
; :Returns:
; Does it return a value?
;
; ${parameters} : in, required, type=type
;
; ${keywords} : in, optional, type=type, default=default
;
; :Uses:
; OtherRoutines
;
;-
compile_opt idl2
When I right click-> Add Routine Comments _anywhere_ in the routine, my template gets added below the declaration (my preference). Works for subroutines, too.
Sometimes, I get funky things that happen in the Workbench (e.g., code folding not working). A restart of the Workbench seems to solve the problem.
I just tried this on a old routine that did not have doc, but was compiled. Worked fine. I'm also on 8.2.3, Mac 10.9.3.
Not sure if this helps, or just rubs salt in the wound :-)
|
|
|
|