Choose Language Hide Translation Bar
ron_horne
Super User

extracting all comments from the script editor

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
Highlighted
msharp
Super User

Re: extracting all comments from the script editor

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

View solution in original post

2 REPLIES 2
Highlighted
msharp
Super User

Re: extracting all comments from the script editor

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

View solution in original post

Highlighted
ron_horne
Super User

Re: extracting all comments from the script editor

Thank you msharp​,

This is very useful.

Article Labels

    There are no labels assigned to this post.