|
Hi List, I spend a lot of time commenting out large blocks of text I
imbed in my syntax headers (e-mail correspondence, pasted text from digital
sources, user instructions, and development notes), and I would love to be able
to highlight an entire block of text in the syntax editor and then execute a
script that would comment out everything in the selection. Any ideas on how to
accomplish this? Thank you, Gary Disclaimer: This communication may contain Heald College confidential and proprietary data. This message is intended only for the personal and confidential use of the designated recipients named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. In addition, if you have received this message in error, please advise the sender by reply email and delete the message. |
|
In Statistics 17 and later, select the
text you want to comment out, then choose Tools > Comment Selection from the
menus. Cheers, Alex From: SPSSX(r)
Discussion [mailto:[hidden email]] On
Behalf Of Moser, Gary Hi
List, I
spend a lot of time commenting out large blocks of text I imbed in my syntax
headers (e-mail correspondence, pasted text from digital sources, user
instructions, and development notes), and I would love to be able to highlight
an entire block of text in the syntax editor and then execute a script that
would comment out everything in the selection. Any ideas on how to accomplish
this? Thank
you,
|
|
Hi,
Just in case you have a lower Spss version: Paste your comments into Excel, then refer to them as e.g. "* "&A1&" .", then CTRL-C for all lines. Cheers!! Albert-Jan --- On Mon, 10/12/09, Reutter, Alex <[hidden email]> wrote: > From: Reutter, Alex <[hidden email]> > Subject: Re: [SPSSX-L] Possible to Automatically Comment Blocks of Syntax? > To: [hidden email] > Date: Monday, October 12, 2009, 6:12 PM > > > > > > > > > > > > > > > > > > > > > > > > > In > Statistics 17 and later, select the > text you want to comment out, then choose Tools > > Comment Selection from the > menus. > > > > > Cheers, > > > Alex > > > > > > > > > > > > > > > > > From: SPSSX(r) > Discussion [mailto:[hidden email]] On > Behalf Of Moser, Gary > > Sent: Monday, > October 12, 2009 > 10:56 AM > > To: > [hidden email] > > Subject: > Possible to Automatically > Comment Blocks of Syntax? > > > > > > > Hi > List, > > > > > I > spend a lot of time commenting out large blocks of text I > imbed in my syntax > headers (e-mail correspondence, pasted text from digital > sources, user > instructions, and development notes), and I would love to > be able to highlight > an entire block of text in the syntax editor and then > execute a script that > would comment out everything in the selection. Any ideas on > how to accomplish > this? > > > > > Thank > you, > > > > > Gary > > > > > > > Disclaimer: This communication may contain > Heald College > confidential and proprietary data. This message is intended > only for the > personal and confidential use of the designated recipients > named above. If you > are not the intended recipient of this message you are > hereby notified that any > review, dissemination, distribution or copying of this > message is strictly > prohibited. In addition, if you have received this message > in error, please > advise the sender by reply email and delete the message. > > > > > > > > ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
In reply to this post by Reutter, Alex
Unfortunately there is not "Uncomment section" command :(
Martins
|
|
Good point. Uncommenting a few statistical procedures by hand is fairly painless, but uncommenting a series of data manipulation commands is not fun. Some things I've tried to ease that pain (YMMV depending upon your situation):
* if you're commenting/uncommenting as part of debugging, you could try breakpoints -- there's a section on breakpoints under "Working with Command Syntax / Using the Syntax Editor" in the help * if the section of code can be reused elsewhere, break it out into a separate syntax file and use INSERT to call it -- there's now only one line to comment/uncomment * if the code isn't reusable, but you'll often be commenting/uncommenting it depending upon the analysis, you could encase it within a DO IF and make the condition depend upon a variable whose value is set at the top of the syntax file -- now you don't even need to navigate to section(s) of the file you want to comment/uncomment Cheers, Alex -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Martins Liberts Sent: Wednesday, October 14, 2009 2:33 AM To: [hidden email] Subject: Re: Possible to Automatically Comment Blocks of Syntax? Unfortunately there is not "Uncomment section" command :( Martins Reutter, Alex wrote: > > In Statistics 17 and later, select the text you want to comment out, then > choose Tools > Comment Selection from the menus. > > > > Cheers, > > Alex > > > > > > ________________________________ > > From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of > Moser, Gary > Sent: Monday, October 12, 2009 10:56 AM > To: [hidden email] > Subject: Possible to Automatically Comment Blocks of Syntax? > > > > Hi List, > > > > I spend a lot of time commenting out large blocks of text I imbed in my > syntax headers (e-mail correspondence, pasted text from digital sources, > user instructions, and development notes), and I would love to be able to > highlight an entire block of text in the syntax editor and then execute a > script that would comment out everything in the selection. Any ideas on > how to accomplish this? > > > > Thank you, > > > > Gary > > > > > Disclaimer: This communication may contain Heald College confidential and > proprietary data. This message is intended only for the personal and > confidential use of the designated recipients named above. If you are not > the intended recipient of this message you are hereby notified that any > review, dissemination, distribution or copying of this message is strictly > prohibited. In addition, if you have received this message in error, > please advise the sender by reply email and delete the message. > > > ----- -- Martins Liberts -- View this message in context: http://www.nabble.com/Possible-to-Automatically-Comment-Blocks-of-Syntax--tp25858273p25886607.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
