IkiWiki::Plugin::syntax::base - Base class for the IkiWiki::Plugin::syntax


IkiWiki-Plugin-syntax documentation  | view source Contained in the IkiWiki-Plugin-syntax distribution.

Index


NAME

Top

IkiWiki::Plugin::syntax::base - Base class for the IkiWiki::Plugin::syntax

VERSION

Top

This documentation refers to IkiWiki::Plugin::syntax::base version 0.1

SYNOPSIS

Top

	package IkiWiki::Plugin::syntax::MyEngine;
    use base qw(IkiWiki::Plugin::syntax::base);

    ...

    1;

DESCRIPTION

Top

This module provides a base class for build specialized interfaces to external syntax highlight engines.

SUBROUTINES/METHODS

Top

new( )

Build a new object and initialize his attributes.

Accept the following parameters:

engine

reset_engine( )

    $engine->reset_engine();

This method initialize the syntax highlight engine.

plugin_info( )

Return a hash with information about the syntax highlight module's capabilities.

syntax_highlight( )

This method produces a HTML text with the original source and the CSS tags.

configure( )

parse_and_html( )

normalize_tags( )

to_number_lines( )

to_bar_lines( )

can_syntax_from( )

detect_language( )

fail_response( )

logging( )

plugin_info( )

DIAGNOSTICS

Top

A list of every error and warning message that the module can generate.

BUGS AND LIMITATIONS

Top

There are no known bugs in this module. Please report problems to the author. Patches are welcome.

AUTHOR

Top

Víctor Moral <victor@taquiones.net>

LICENSE AND COPYRIGHT

Top


IkiWiki-Plugin-syntax documentation  | view source Contained in the IkiWiki-Plugin-syntax distribution.