Choose Language Hide Translation Bar
Highlighted
Aziza
Level III

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!

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

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.

Learn it once, use it forever!

View solution in original post

Highlighted
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
Highlighted

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.

Learn it once, use it forever!

View solution in original post

Highlighted
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

Highlighted
Aziza
Level III

Re: Comment/Uncomment out portions in the script

fantastic! Thank you!

Highlighted
bswedlove
Level III

Re: Comment/Uncomment out portions in the script

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

Highlighted
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
Highlighted
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/...

Article Labels

    There are no labels assigned to this post.