From 47298b01c1921deff7e056406245a90f8371bd59 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 23 May 2009 05:17:26 -0400 Subject: allow format to use any language supported by highlight format: Provide a htmlizefallback hook that other plugins can use to handle formats that are not suitable for general-purpose htmlize hooks. highlight: Use the hook to allow formatting of any language/extension, without it needing to be enabled for standalone source files. highlight: If the highlight perl binding is not available, fallback safely to a passthrough mode. --- doc/todo/syntax_highlighting.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/todo') diff --git a/doc/todo/syntax_highlighting.mdwn b/doc/todo/syntax_highlighting.mdwn index 01aa7b576..3d122829b 100644 --- a/doc/todo/syntax_highlighting.mdwn +++ b/doc/todo/syntax_highlighting.mdwn @@ -36,8 +36,10 @@ work as source-highlight, but in perl. I plan to package the base module for de releases the 5 or 6 language definitions he has running on his web site, it might be suitable for inclusion in ikiwiki. [[DavidBremner]] * [[plugins/highlight]] uses [highlight](http://www.andre-simon.de) via - its swig bindings. It supports whole files only. It uses either - keepextension or noextension, as appropriate for the type of file. + its swig bindings. It optionally supports whole files, but also + integrates with the format directive to allow formatting of *any* of + highlight's supported formats. (For whole files, it uses either + keepextension or noextension, as appropriate for the type of file.) ## General problems / requirements -- cgit v1.2.3