On 5/20/2008 10:53:50 AM, Pauli Lindgren wrote:
>I tried your C-INIT.VDM, but it did not show syntax colors.
>[...]
>However, the result is quite horrible. The macro sets window color to blue
>background. But since I am normally using white background, the syntax
>colors are on white background, too.
>This means that highlighted keywords etc. will be in white background, while
>other parts of window are in blue background.
>
>So the commands to set window color need to be removed, too.
>This has the drawback that now the compiler output window looks the same as
>all the other windows.
Pauli:
I now checked and changed the relevant compiler macros.
One reason for the failure on your PC was that I hadn't posted all needed macros...
As attachment my current compiler macros (the changed ones after 2005).
The *.vdm need to be in C:\vedit\compile.
The *.syn and *.vcs need to be in SUPPORTPATH (probably the same dir as above).
I tested the macros with GCC and JAVAC successfully.
But please take them as beta test for now!!!
Changes since 2005:
- The SUPPORTPATH in Compile.cnf can be given in a much more flexible way now
(As path with spaces, with or without double quotes, with optional comment)
- The vcs.tmp file (compiler output) is shown with syntax highlighting if there is
an appropriate file *-OUT.syn in the SUPPORTPATH directory ("*" is the same
compiler name as used for the *.VCS file, eg. GCC-OUT.SYN).
As background color the same color is used as in the original source code window.
If there is no such *-OUT.SYN the macro tries to find and use GENERIC-OUT.SYN.
If that one isn't existing as well, no syntax highlighting is used here and
the window color is the original blue.
Those *-OUT.SYN files may describe the warning-/error-syntax of the used compiler.
- The vcs-tmp.bat file used for calling the compiler is no longer stored in
the project directory but in VEDIT_TEMP.
So even very long (deep) project directories doesn't kill the Sys() calling the compiler.
The macro calls for that changed too.
Example from GCC.VCS:
:COMPILE:
[...]
//old: Call(103,"MAKE-BAT") // Create VCS-TMP.BAT file
//old: System('"|@(96)\vcs-tmp.bat"',DOS+NOMSG+SIMPLE)
//new:
Call(103,"EXEC-COMPILER") // Create and execute VCS-TMP.BAT
So you have to change your *.VCS files a little bit!
Christian