After you've gone through your composition and highlighted your favorite bits, you can compile highlights in your script using the Copy highlights feature.
Using copy highlights
- Select the Action bar in the top left corner of the Script editor, search for Copy highlights, and choose to copy a single highlight color or all highlights.
- Open an existing composition or create a new one.
- Right click in the Script editor where you want the highlights to go and select Paste.