Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

commenting multiple lines in formcalc/javascript

Avatar

Former Community Member

Hi,

 

  we use '//' for commenting a single line. How can we comment multiple lines at  a time? It will be a big pain to comment 15 lines in scripting code each line with a //. Can you tell me any short cut for this.

Also, do we have any keyboard shortcuts for commenting a script line?

Solution for this will save a lot of time for me.

Thanks,

kc

5 Replies

Avatar

Level 10

Wrap the code block in /* ... */

/*

lines of code

*/

Avatar

Level 4

The comment block works, but I think this question stems from the use of

RAD - People that are used to RAD (Eclipse) are accustomed to selecting

multiple lines of code and then typing "CTRL-/" to comment multiple lines,

each line having the "//".

Avatar

Former Community Member

Hi..

   I think that works only for javascript. how abt doing it for formcalc scripts.

Also, I tried with keyboard CTRL + '/'. But it didnt work for me.

Do we have any other options to do this when we are using livecycle designer for scripting?

Thanks,

k.c

Avatar

Level 10

Not sure about FormCalc...maybe one of the Adobe folks here have some ideas.

If you search the help for "comments" you'll find some tips for commenting FormCalc. But it doesn't look like there's a way to do block comments.

Avatar

Former Community Member

That has not been implemented in the scripting editor in Designer.

Paul