In an nb file, there are many input code lines and corresponding results generated by the code, as well as manually inserted images, etc. What methods do we have to automatically select all content in the file except for the code lines, so that it can be saved for other documents? If manually selecting the corresponding sections is time-consuming for large files, are there any automatic selection methods?