[xsl] XML and XSL syntax coloring for FAR

Subject: [xsl] XML and XSL syntax coloring for FAR
From: "Alexander Gutman" <gutman@xxxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2001 10:33:09 +0700
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@xxxxxxxxxxxxxxx

    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


Current Thread