Michael A. Nachbaur > Apache-AxKit-Provider-File-Syntax-0.06 > Apache::AxKit::Provider::File::Syntax

Download:
Apache-AxKit-Provider-File-Syntax-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.06   Source  

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.

SEE ALSO ^

Text::VimColor

syntax highlighting: