The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Syntax::Kamelon::XMLData - load Kate syntax definition xml files.

SYNOPSIS

 use Syntax::Kamelon::XMLData;
 my $indexer = Syntax::Kamelon::XMLData->new(xmlfile => $file);

DESCRIPTION

This module loads a syntax definition xml file and holds it's data.

OPTIONS

The constructor is called with a paired list or hash of options as parameters. You can use the following options.

xmlfile => filename

Full path and file name of the xml file to load.

METHODS

Attributes($reftohash);

Sets and returns the hash that contains style information.

BaseContext($string);

Sets and returns the base context. The base context is the context which starts the highlighting process in Kate. It is the first context that XMLLoad encounters in an xml file.

Booleanize($string);

Accepts 'true' or 'false' and converts it to the corresponding boolean value.

Clear

Clears all data. What remains is an empty object.

ContextData($reftohash);

Sets and returns the hash that contains context information.

AdditionalDeliminator($string);

Sets and returns the additional deliminators.

WeakDeliminator($string);

Sets and returns the weak deliminators.

FileName($filename);
GetItems
KeywordsCase($boolean);

Sets and returns case sensitivity for keyword testing.

Language($reftohash);

Sets and returns the hash that contains language information.

Lists($reftohash);

Sets and returns the hash that contains the lists.

Syntax

Returns the language name.

XMLXXXX

These methods are all involved in the loading of a Kate syntax definition xml.

XMLGetAttribute
XMLGetContext
XMLGetKeywordSettings
XMLGetLanguage
XMLGetList
XMLLoad($filename);
XMLSetContext

AUTHOR AND COPYRIGHT

This module is written and maintained by:

Hans Jeuken < hansjeuken at xs4all dot nl>

Copyright (c) 2017 by Hans Jeuken, all rights reserved.

Published under the GPLV3 license.

SEE ALSO

Syntax::Kamelon, Syntax::Kamelon::Builder, Syntax::Kamelon::Debugger, Syntax::Kamelon::Diagnostics, Syntax::Kamelon::Indexer, Syntax::Kamelon::Format::Base, Syntax::Kamelon::Format::TT