cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Aziza
Level IV

Comment/Uncomment out portions in the script

Hi all,

 

does any of you know how to comment out the portions of the script in JMP? 

 

Thank you!

 

 

 

Greetings
2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Comment/Uncomment out portions in the script

Select the portion you want to change and then right-click in the script window. Select Advanced > Comment Block or Uncomment Block.

View solution in original post

pmroz
Super User

Re: Comment/Uncomment out portions in the script

And if you want to do it manually, JMP uses C++ style comments.  Either surround the code to be commented out with /*   */, or start each line with //.

// Uncommented:
pi = 3.14159;
e  = 2.71828;

// Commented out using /* */
/*
pi = 3.14159;
e  = 2.71828;
*/

// Commented out a different way
// pi = 3.14159;
// e  = 2.71828;

View solution in original post

6 REPLIES 6

Re: Comment/Uncomment out portions in the script

Select the portion you want to change and then right-click in the script window. Select Advanced > Comment Block or Uncomment Block.

pmroz
Super User

Re: Comment/Uncomment out portions in the script

And if you want to do it manually, JMP uses C++ style comments.  Either surround the code to be commented out with /*   */, or start each line with //.

// Uncommented:
pi = 3.14159;
e  = 2.71828;

// Commented out using /* */
/*
pi = 3.14159;
e  = 2.71828;
*/

// Commented out a different way
// pi = 3.14159;
// e  = 2.71828;
Aziza
Level IV

Re: Comment/Uncomment out portions in the script

fantastic! Thank you!

Greetings
bswedlove
Level IV

Re: Comment/Uncomment out portions in the script

Is there a keyboard shortcut to comment/uncomment a block of code?

txnelson
Super User

Re: Comment/Uncomment out portions in the script

Review of the Menu Card for the Script Editor

     Help==>Books==>Menu Card

There is not a keyboard short cut for commenting blocks of text

Jim
JPoindexter
Level II

Re: Comment/Uncomment out portions in the script

If anybody thinks there should be better keyboard shortcuts for commenting, you should vote for this suggestion:
https://community.jmp.com/t5/JMP-Wish-List/Keyboard-Shortcut-to-Comment-Code-in-Script-Editor/idi-p/...

Recommended Articles