Apache::AxKit::Provider::File::Syntax - File syntax XML generator
AxContentProvider Apache::AxKit::Provider::File::Syntax
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.
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>
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.
Text::VimColor
To install Apache::AxKit::Provider::File::Syntax, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AxKit::Provider::File::Syntax
CPAN shell
perl -MCPAN -e shell install Apache::AxKit::Provider::File::Syntax
For more information on module installation, please visit the detailed CPAN module installation guide.