This is a program that displays the contents of ADO files I created.
It accomplishes its purpose, but it is quite forceful. I would like to output only the code part if possible.
What are your suggestions for improvement?

Code:
program ccontent
    syntax namelist
    tempfile temp
    tempfile temp2
    capture log close
    capture log using `temp',text nomsg replace
    which `*'
    log close
    capture log using `temp2',text nomsg replace
    di `"type ""' _continue
    type `temp', lines(1)
    di `"""'
    log close
    do `temp2'
end

* example
ccontent help
https://github.com/nono3/ccontent.ado