commenting multiple lines in formcalc/javascript | Community
Skip to main content
July 13, 2009
Question

commenting multiple lines in formcalc/javascript

  • July 13, 2009
  • 5 replies
  • 8412 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Jono_Moore
July 13, 2009

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

/*

lines of code

*/

July 13, 2009

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

July 13, 2009

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

Jono_Moore
July 13, 2009

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.

July 13, 2009

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

Paul