[prev in list] [next in list] [prev in thread] [next in thread]
List: quanta
Subject: [Quanta] highlighting my own scripts in Quanta
From: Waldemar Biernacki <wb () sao ! pl>
Date: 2007-10-29 8:23:26
Message-ID: 200710290923.26640.wb () sao ! pl
[Download RAW message or body]
Hello,
I use Quanta for few years. Almost everything suits me well.
The "almost" is connected with the fact that I can't find solution to the
following problem:
I have defined my own script (I call them sao scripts, the simple but true
example of it is enclosed later.
My problem is where and how in quanta I can to define my own schema of
colouring such a script? I have found the editor called "ConTEXT" which can
managed the problem easy and effectively. However it is MS Windows program
and therefore useless for me.
Is there someone who can help me?
thanks
Waldemar
The example of the sao script:
Main principles in the script are two:
1. each line is independent
2. each line has the following form:
KEYWORD = INTEGER;OPTION1;OPTION2;OPTION3;OPTION4;
where char ';' separates options.
##############################################################
REPLACE = rejestracja/rejestracja.rep
ARG = 0;UPD;$VAR0;
ARG = 1;UPD;$VAR1;
NAME = Cechy typów rachunków [ $VAR0 / $VAR1 ]
##############################################################
DATA = 0;DB;rejestracja_rachunki_cechy;5;0;cecha,nazwa,opis
WRITE = 0;DB;rejestracja_rachunki_cechy;0,1,2
LOCATE = 0;1,$ARG0
KEY = 1;wg cechy;cecha
KEY = 2;wg nazwy;nazwa
#-----------------------------------------------------------------------------#
TASK = 0; BATCH=;0; OPEN=;1; CLOSE=;1; PICKUP=;1
MODE = 0; SELECT=;1; UPDATE=;1; INSERT=;1; DELETE=;1; START=;Query;
#-----------------------------------------------------------------------------#
FRAME = 0;HEADER; -left=>300,-top=>50,-width=>350,-height=>350;\
%REPLACE_standardfield%;%REPLACE_standardfieldfont%;\
%REPLACE_standardheader%;%REPLACE_standardheaderfont%
FILL = 0;LABEL; 10; 30;-text=>cecha, -width=> 59
FILL = 0;LABEL; 70; 30;-text=>nazwa, -width=>239
SCROLL = 0;10;50;1000;50;0;22;;
###############################################################################
VAR = 0;$DB0;;;;; 1;Textfield; 10; 50;-width=> 59,-uppercase=>1
VAR = 1;$DB1;;;;; 1;Textfield; 70; 50;-width=>239,
FILL = 0;LABEL; 10;170;-text=>opis,-width=> 49
VAR = 2;$DB2;;;;; \
1;Textfield; 10;190;-width=>299,-height=>100,-multiline=>1
#-----------------------------------------------------------------------------#
TOOLBAR = 0;tools;CtrlP`CtrlM`CtrlT`F2`CtrlHome`PgUp`Prev`Next`PgDn
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic