cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-54525%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ECommenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54525%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESalut%20tout%20le%20monde%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEst-ce%20que%20l'un%20d'entre%20vous%20sait%20comment%20commenter%20des%20parties%20du%20script%20dans%20JMP%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMerci!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-194013%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194013%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESi%20quelqu'un%20pense%20qu'il%20devrait%20y%20avoir%20de%20meilleurs%20raccourcis%20clavier%20pour%20commenter%2C%20vous%20devriez%20voter%20pour%20cette%20suggestion%26nbsp%3B%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FKeyboard-Shortcut-to-Comment-Code-in-Script-Editor%2Fidi-p%2F59754%22%20target%3D%22_blank%22%3E%20https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FKeyboard-Shortcut-to-Comment-Code-in-Script-Editor%2Fidi-p%2F59754%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59701%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59701%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ER%C3%A9vision%20de%20la%20carte%20de%20menu%20pour%20l'%C3%A9diteur%20de%20script%3C%2FP%3E%0A%3CP%3EAide%3D%3D%26gt%3BLivres%3D%3D%26gt%3BCarte%20de%20menu%3C%2FP%3E%0A%3CP%3EIl%20n'y%20a%20pas%20de%20raccourci%20clavier%20pour%20commenter%20des%20blocs%20de%20texte%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EExiste-t-il%20un%20raccourci%20clavier%20pour%20commenter%2Fd%C3%A9commenter%20un%20bloc%20de%20code%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-54668%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54668%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Efantastique!%20Merci!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-54548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEt%20si%20vous%20souhaitez%20le%20faire%20manuellement%2C%20JMP%20utilise%20des%20commentaires%20de%20style%20C%2B%2B.Soit%20entourez%20le%20code%20%C3%A0%20commenter%20avec%20%2F*%20*%2F%2C%20soit%20commencez%20chaque%20ligne%20par%20%2F%2F.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2F%20Uncommented%3A%0Api%20%3D%203.14159%3B%0Ae%20%20%3D%202.71828%3B%0A%0A%2F%2F%20Commented%20out%20using%20%2F*%20*%2F%0A%2F*%0Api%20%3D%203.14159%3B%0Ae%20%20%3D%202.71828%3B%0A*%2F%0A%0A%2F%2F%20Commented%20out%20a%20different%20way%0A%2F%2F%20pi%20%3D%203.14159%3B%0A%2F%2F%20e%20%20%3D%202.71828%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-54530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20Commenter%2FD%C3%A9commenter%20des%20parties%20du%20script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ES%C3%A9lectionnez%20la%20partie%20que%20vous%20souhaitez%20modifier%2C%20puis%20cliquez%20avec%20le%20bouton%20droit%20dans%20la%20fen%C3%AAtre%20de%20script.%20S%C3%A9lectionner%3CSTRONG%3E%20Avanc%C3%A9%3C%2FSTRONG%3E%20%26gt%3B%3CSTRONG%3E%20Bloc%20de%20commentaires%3C%2FSTRONG%3E%20ou%3CSTRONG%3E%20D%C3%A9commenter%20le%20bloc%3C%2FSTRONG%3E%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E
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