File: automatic_use_of_syntax_plugin_on_source_code_files.mdwn

package info (click to toggle)
ikiwiki 3.20190228-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,904 kB
  • sloc: perl: 31,100; python: 428; sh: 185; makefile: 120
file content (17 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[[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]]