NAME

Apache::AxKit::Provider::File::Syntax - File syntax XML generator

SYNOPSIS

    AxContentProvider Apache::AxKit::Provider::File::Syntax

DESCRIPTION

This provider processes the requested file and, instead of outputting it verbatim, it marks the file up as XML representing the syntax of the source document. This is very useful for displaying JavaScript, Perl, or other non-XML markup and syntax-colorizing it for display on a website.

EXAMPLE

The following example shows how you can integrate the syntax processing provider with an existing site, without having normal requests

  Alias /syntax/ /path/to/document/root/
  <Location /syntax/>
    SetHandler AxKit
    AxContentProvider Apache::AxKit::Provider::File::Syntax
    AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
  </Location>

BUGS

Probably very many more than listed here, but this is the known list.

  • Attempts to process any file given to it, even if it cannot do so successfully (e.g. binary files)

  • The method by which it identifies the VIM file type is faulty, and currently only works properly with a small subset of filetypes.

SEE ALSO

Text::VimColor