cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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/...