summaryrefslogtreecommitdiff
path: root/doc/todo/automatic_use_of_syntax_plugin_on_source_code_files.mdwn
blob: 71b4b88f0263ca20c9810d47ad297561f2a9e6bb (plain)

[[Wishlist]]: optionally use the [[plugins/contrib/syntax]] plugin automatically on source code files in the repository with recognized extensions or shebangs, and render them as though they consisted of an [[.mdwn|ikiwiki/markdown]] page containing nothing but a single call to the syntax plugin with the file contents as the text argument and the recognized type as the type argument.

Together with the ability to have [[wiki-formatted_comments|wiki-formatted_comments_with_syntax_plugin]], this would allow the use of ikiwiki for [[!wikipedia literate programming]].

  • I have started something along these lines see [[plugins/contrib/sourcehighlight]]. For some reason I started with source-highlight [[DavidBremner]]

  • I wonder if this is similar to what you want: http://iki.u32.net/setup/Highlight_Code_Plugin/

The new [[plugins/highlight]] plugin is in ikiwiki core and supports source code files natively. [[done]] --[[Joey]]