The Data Translator Api - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

3.
Save the file as kent.htm in the Configuration/Translators folder.

The Data Translator API

This section describes the functions used to define translators for Dreamweaver.
getTranslatorInfo()
Description
This function provides information about the translator and the files it can affect.
Arguments
None.
Returns
An array of strings. The elements of the array must appear in the following order:
1.
The
translatorClass
with a letter and can contain only alphanumeric characters, hyphens (-), and underscores
(_).
2.
The
string describes the translator in no more than 40 characters.
title
3.
The
nExtensions
is zero, the translator can run on any file. If
element in the array.
4.
The
string specifies a file extension (for example,
extension
with this translator. This string is not case-sensitive and should not contain a leading
period. The array should contain the same number of
specified in
nExtensions
5.
The
string specifies the number of regular expressions that follow. If
nRegExps
is zero,
runDefault
6.
The
string specifies a regular expression that you can check. The array should
regExps
contain the same number of
one of the
regExps
translator can act on a file.
452
Data Translators
string uniquely identifies the translator. This string must begin
string specifies the number of file extensions to follow. If
.
is the next element in the array.
elements as are specified in
regExps
elements must match a piece of the document's source code before the
is zero,
nExtensions
"htm"
extension
nExtensions
is the next
nRegExps
or
) that works
"SHTML"
elements that are
nRegExps
, and at least
nRegExps

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver 8

Table of Contents