Subscribe Bookmark RSS Feed

extracting all comments from the script editor

ron_horne

Super User

Joined:

Jun 23, 2011

Hi All,

I have a long script that and would like to copy-paste all the comments in it to a Word document.

is there a way of selecting just the comments? or is it just deleting manually all the actual commands after pasting into word?

thanks,

ron

1 ACCEPTED SOLUTION

Accepted Solutions
msharp

Super User

Joined:

Jul 28, 2015

Solution

Since JSL files are just text files, there are several comment parsers out there you can easily google.  Here's a good blog post on using regex to find comments in code:

Finding Comments in Source Code Using Regular Expressions – Stephen Ostermiller

2 REPLIES
msharp

Super User

Joined:

Jul 28, 2015

Solution

Since JSL files are just text files, there are several comment parsers out there you can easily google.  Here's a good blog post on using regex to find comments in code:

Finding Comments in Source Code Using Regular Expressions – Stephen Ostermiller

ron_horne

Super User

Joined:

Jun 23, 2011

Thank you msharp​,

This is very useful.