Function to extract all code chunks from a .txt file

parse_code(purled_content)

Arguments

purled_content

Output from knitr::purl() function