Syntax::SourceHighlight::LangMap(3)

NAME
Syntax::SourceHighlight::LangMap - Perl class for libsource-highlight's "srchilite::LangMap"

SYNOPSIS
    use Syntax::SourceHighlight;
    my $lm = Syntax::SourceHighlight::LangMap->new();
    print( $lm->getMappedFileName('bash'), "\n" );

DESCRIPTION
This is the counterpart to the libsource-highlight's "srchilite::LangMap <https://www.gnu.org/software/src-highlite/api/classsrchilite_1_1LangMap.html>" class.

The following public methods are implemented in this package:

•   getMappedFileName()

•   getMappedFileNameFromFileName()

•   getLangNames()

•   getMappedFileNames()

These are missing:

•   open() – invoked automatically after Perl object creation

•   getFileName() – it does the same as getMappedFileName() but without opening the mapping file first

•   reload()

The following methods exist due to backwards compatibility with earlier versions of this package:

•   langNames() is the same as getLangNames()

•   mappedFileNames() is the same as getMappedFileNames()

SEE ALSO
The main documentation with examples is in the Syntax::SourceHighlight POD.