This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XML and XSL syntax coloring for FAR
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] XML and XSL syntax coloring for FAR
- From: "Alexander Gutman" <gutman at novosoft-us dot com>
- Date: Tue, 11 Sep 2001 10:33:09 +0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello, friends.
The XML HRC Pack described below can be found at Plugring:
www.uic.nnov.ru/~ruiv/plugring/downld/files/colorer/xpack104.zip
----------------------------------------------------------------
XML HRC Pack
Ver. 1.04
Copyright (c) Alexander Gutman; 2001
Email: gutman@novosoft-us.com
A pack of HRC files for coloring XML and XSL syntax
in Colorer 4ever (c) Cail Lomecb
for FAR Manager (c) Eugene Roshal
General description
XML: The pack recognizes XML elements (with embedding taken into
account) and their attributes, namespace prefixes and their
declarations, special attributes xml:space and xml:lang,
entity references, and, of course, comments, CDATA sections,
processing instructions and document type definitions (DTD).
The pack is rather sensitive to syntax violation.
For instance, it recognizes such a "trifle" as
an erroneous value of an xml:space attribute.
XSL: The pack recognizes all known XSL elements and their
attributes, as well as FO elements names.
For each attribute of any XSL element, the pack recognizes
the syntax of the value specific for this particular
attribute (XPath/XSLT expression, QName, NCName, etc.).
The pack recognizes attribute value templates, doing this
only where the latter are admissible.
In XPath/XSLT expressions, the pack recognizes node tests,
axes, string constants, predicates and functions
(with brackets matching and embedding taken into account),
variables, relations and operations, etc.;
in short, all known syntax constructions are recognized.
Almost any error in the name of an element or attribute
or a syntax error in a typed value of a standard attribute
or in an XPath/XSLT expression implies either coloring
violation or specially stipulated error highlighting.
The pack includes a hundred of customizable color regions
(see "xml_colors.hrc"). For instance, regions are provided
therein for color highlighting of individual fragments
of closing tags, etc.; down to, say, a "$" sign in a variable
reference.
There are 15 regions whose tuning makes it possible to regulate
the packet's sensitivity to various erroneous situations.
Tuning the type regions for comments and XSLT templates makes
it possible to include the latter into the list of functions
produced by Plugin commands -> Colorer -> List functions.
A special "xmlCustom" scheme makes it possible to include color
highlighting of personal "temporary" marks (e.g., "?!").
For a detailed description of all customizable regions, see
"xml_colors.txt".
--
Alexander Gutman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list