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%3EKommentieren%2FKommentieren%20Sie%20Teile%20im%20Skript%20aus%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54525%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20zusammen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWei%C3%9F%20jemand%20von%20euch%2C%20wie%20man%20die%20Teile%20des%20Skripts%20in%20JMP%20auskommentiert%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDanke%20sch%C3%B6n!%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%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194013%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWenn%20jemand%20der%20Meinung%20ist%2C%20dass%20es%20bessere%20Tastaturk%C3%BCrzel%20zum%20Kommentieren%20geben%20sollte%2C%20sollten%20Sie%20f%C3%BCr%20diesen%20Vorschlag%20stimmen%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%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59701%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C3%9Cberpr%C3%BCfung%20der%20Men%C3%BCkarte%20f%C3%BCr%20den%20Skripteditor%3C%2FP%3E%0A%3CP%3EHilfe%3D%3D%26gt%3BB%C3%BCcher%3D%3D%26gt%3BMen%C3%BCkarte%3C%2FP%3E%0A%3CP%3EEs%20gibt%20keine%20Tastenkombination%20zum%20Kommentieren%20von%20Textbl%C3%B6cken%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGibt%20es%20eine%20Tastenkombination%20zum%20Kommentieren%20bzw.%20Auskommentieren%20eines%20Codeblocks%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%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54668%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Efantastisch!%20Danke%20sch%C3%B6n!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-54548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUnd%20wenn%20Sie%20es%20manuell%20tun%20m%C3%B6chten%2C%20verwendet%20JMP%20Kommentare%20im%20C%2B%2B-Stil.Umschlie%C3%9Fen%20Sie%20den%20auszukommentierenden%20Code%20entweder%20mit%20%2F*%20*%2F%20oder%20beginnen%20Sie%20jede%20Zeile%20mit%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%3EBetreff%3A%20Teile%20im%20Skript%20kommentieren%20bzw.%20auskommentieren%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-54530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EW%C3%A4hlen%20Sie%20den%20Teil%20aus%2C%20den%20Sie%20%C3%A4ndern%20m%C3%B6chten%2C%20und%20klicken%20Sie%20dann%20mit%20der%20rechten%20Maustaste%20in%20das%20Skriptfenster.%20W%C3%A4hlen%3CSTRONG%3E%20Fortschrittlich%3C%2FSTRONG%3E%20%26gt%3B%3CSTRONG%3E%20Kommentarblock%3C%2FSTRONG%3E%20oder%3CSTRONG%3E%20Kommentarblock%20aufheben%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