logo
首页技术栈工具库讨论
snippet-extractor

snippet-extractor

Snippet-extractor looks for snippets in files and places those snippets in their own files. A snippet is defined as consecutive lines in a file delimited by "@snippet-start <filename>" and "@snippet-end", the extracted snippet is placed in the provided filename. If the desired filename contains spaces, put the filename in quotes. Everything on the line with the start and end markers is discarded. Snippet-extractor should be agnostic to the syntax of the file you are extracting from. Here is an example: The above snippet would be extracted and placed in snippet1.c Snippet-extractor is intended for use in documentation. For example, the snippets could be extracted from working code and then included in a text about the code.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install snippet-extractor
查看
标签
根据用户添加的标签生成
暂无标签