You are here: PSPad forum > English discussion forum > Is it possible to define a multi-highlighter?
Posted by: human | Date: 2017-04-10 07:12 | IP: IP Logged
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?
Posted by: pspad | Date: 2017-04-10 08:20 | IP: IP Logged
Not bow. When I will change editor engine, it will be possible. All highlighters will be external
Editor PSPad - freeware editor, © 2001 - 2026 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR