The builtin highlighters work quite well and I wonder how to best support
highlighting files that contain multiple languages in the autotest context. This
has the "autotest syntax" and another language defined within. Short example:


### GnuCOBOL Test Suite


AT_SETUP([cobc with standard configuration file])
AT_KEYWORDS([configuration misc])

AT_DATA([prog.cob], [
       IDENTIFICATION   DIVISION.
       PROGRAM-ID.      prog.
       AUTHOR. tester.
       DATA             DIVISION.
       WORKING-STORAGE  SECTION.
       PROCEDURE        DIVISION.
           STOP RUN.
])

# default configuration permits this extension
AT_CHECK([$COMPILE_ONLY prog.cob], [0], [],
[prog.cob: 4: warning: AUTHOR is obsolete in GnuCOBOL
])

AT_CLEANUP


Is it possible to define something like this (one language "outside", another
one "inside") or is the only option to define an autotest syntax highlighter
(feature-request, wink, wink) and switch between this one and the highlighter
for the "included" language?

-- 
<http://forum.pspad.com/read.php?2,68508,68508>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem