Topic: New VEDIT compiler support files (1 of 7), Read 63 times, 2 File Attachments
Conf: Compiler support
From: Christian Ziemski
Date: Friday, May 30, 2008 08:51 AM

Animated by these discussions here in Webboard
-- "compiler support and syntax highlighting"
-- "Possible and harmless typo in COMPILE.CNF"
I worked a bit on the VEDIT compiler support files.

Last week I posted a preliminary version here.
Now it should be finished.

Here are the new files for the Vedit users who would like to use them.


The changes compared to the original VEDIT distribution (2008-02-12 / 6.15.2) are:

- The configuration parameter SUPPORTPATH in Compile.cnf
is enhanced now:
Pathes with spaces are allowed, with optional double quotes, with optional comment.

- The compiler output file (vcs.tmp) can be displayed with syntax highlighting.
That way you can for example highlight the warning-/error-syntax of the compiler.
As background color the same color is used as in the original source code window.

This feature is activated by special - compiler dependent - files
in the SUPPORTPATH directory.

If there is an appropriate syntax file named like *-OUT.SYN, that one is used.
("*" is the same compiler name as used for the *.VCS file, eg. GCC-OUT.SYN),

If there is no such *-OUT.SYN the macro tries to find and use a GENERIC-OUT.SYN.

If that one isn't existing as well, no syntax highlighting is used and
the window color is the original blue.

As example I added GCC.VS and GGC-OUT.SYN to the compiler files.

- The internally used 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()
command calling the compiler.

Doing that change I simplified the syntax to call the compiler
(internally and in the .VCS files).

Example from a .VCS file:

:COMPILE:
[...]
// old:
// Call(103,"MAKE-BAT") // Create VCS-TMP.BAT file
// System('"|@(96)\vcs-tmp.bat"',DOS+NOMSG+SIMPLE)

//new:
Call(103,"EXEC-COMPILER") // Create and execute VCS-TMP.BAT

I modified all supplied .VCS files that way.

If you have your own VCS files you have to change them too.
To make that easier, the compiler macro checks the currently used
.VCS file and changes it automatically.
Then it presents the result to the user to let him doublecheck.


The new compiler support files (all files from the directory vedit\compile)
are packed into two ZIP files:

1.) compile-execs.zip contains only the .VDM und .BAT files.
Usually those files aren't modified by users and therefore should be
save to overwrite.

2.) compile-vcs+.zip contains the .VCS files etc..
Check carefully to not overwrite your possible modifications here!

Of course it's always a good idea to backup the compile directory before the install.


Christian


PS: There is a syntax file JAVA.SYN in the compile directory.
I don't know why. It's there for several years now.
I assume that's by mistake!?
The same file is in the Vedit home directory, where it's correct.

 
COMPILE-VCS+.ZIP (49KB)
 
COMPILE-EXECS.ZIP (27KB)

 


Topic: New VEDIT compiler support files (2 of 7), Read 59 times
Conf: Compiler support
From: Fritz Heberlein
Date: Monday, June 02, 2008 02:25 PM

I have tested the new compiler support with LaTeX, and everything
works fine. The syntax highlighting is a great enhancement, given the rather confuse output of the TeX compiler.


Let's hope that the new files make their way into the official distribution!!


A big thanks to Christian!

Fritz

NB. For LaTeX a latex-out.syn file like the following will do:

Reserved1 = Error:
Reserved2 = Warning:
Reserved3 = runaway argument?
Reserved4 = Emergency stop

Simply searching for "error" and "warning" is more efficient than for "LaTeX Error" etc. Otherwise, you will get all that numerous but pointless "LaTeX" strings highlighted.

 


Topic: New VEDIT compiler support files (5 of 7), Read 67 times
Conf: Compiler support
From: Peter Rejto
Date: Monday, June 02, 2008 07:26 PM

On 6/2/2008 2:25:41 PM, Fritz Heberlein wrote:
>I have tested the new compiler
>support with LaTeX, and
>everything
>works fine. The syntax
>highlighting is a great
>enhancement, given the rather
>confuse output of the TeX
>compiler.
>
>
>Let's hope that the new files
>make their way into the
>official distribution!!
>
>
>A big thanks to Christian!
>
>Fritz
>
>NB. For LaTeX a latex-out.syn
>file like the following will
>do:
>
>Reserved1 = Error:
>Reserved2 = Warning:
>Reserved3 = runaway argument?
>Reserved4 = Emergency stop
>
>Simply searching for "error"
>and "warning" is more
>efficient than for "LaTeX
>Error" etc. Otherwise, you
>will get all that numerous but
>pointless "LaTeX" strings
>highlighted.



Fritz,

I also would like to join you in extending our thanks/gratitude to Christian for hie enhanced family of
compiler files and for editing LATEX.VCS. It is an extra dividend that the new LATEX.VCS file is shorter than the old one.

I am really looking forward to using your Latex specific error highlighting.


-peter.

 


Topic: Re: New VEDIT compiler support files (7 of 7), Read 56 times
Conf: Compiler support
From: Ted Green
Date: Monday, June 02, 2008 09:31 PM

At 02:27 PM 6/2/2008, you wrote:
>From: "Fritz Heberlein"
>
>I have tested the new compiler support with LaTeX, and everything
>works fine. The syntax highlighting is a great enhancement, given the rather confuse output of the TeX compiler.
>
>
>Let's hope that the new files make their way into the official distribution!!
>


Absolutely! Yes, thank you so much for the compiler support improvements.

BTW - Christian will be visiting me in Ann Arbor in a month. Who votes that I make him a job offer?

Ted.

 


Topic: New VEDIT compiler support files (3 of 7), Read 54 times
Conf: Compiler support
From: Fritz Heberlein
Date: Monday, June 02, 2008 03:17 PM

>- The configuration parameter
>SUPPORTPATH in Compile.cnf
> is enhanced now:

The ZIP doesn't seem to contain the compile.cnf file.
It contains, however, a yap.vdm, which has nothing to do with compiler support (it opens yap.exe, the LaTeX previewer).

Fritz

 


Topic: New VEDIT compiler support files (4 of 7), Read 57 times
Conf: Compiler support
From: Christian Ziemski
Date: Monday, June 02, 2008 04:25 PM

On 6/2/2008 3:17:50 PM, Fritz Heberlein wrote:
>
>The ZIP doesn't seem to contain the compile.cnf file.

That is correct. This file didn't change and is not in the compile directory (it's in Vedit home).
So I didn't include it in the zip file.

>It contains, however, a yap.vdm, which has nothing to
>do with compiler support (it opens yap.exe, the LaTeX
>previewer).

But it is somehow connected to LATEX.VCS and it is in the original Vedit distribution, in the compile directory.

Possibly it better should be moved to user-mac in the next version?

Christian

 


Topic: New VEDIT compiler support files (6 of 7), Read 57 times
Conf: Compiler support
From: Peter Rejto
Date: Monday, June 02, 2008 07:53 PM

On 5/30/2008 8:51:28 AM, Christian Ziemski wrote:
>Animated by these discussions
>here in Webboard
>-- "compiler support and
>syntax highlighting"
>-- "Possible and harmless typo
>in COMPILE.CNF"
>I worked a bit on the VEDIT
>compiler support files.
>
>Last week I posted a
>preliminary version here.
>Now it should be finished.
>
>Here are the new files for the
>Vedit users who would like to
>use them.
>
>
>The changes compared to the
>original VEDIT distribution
>(2008-02-12 / 6.15.2) are:
>- The configuration parameter
>SUPPORTPATH in Compile.cnf
> is enhanced now:
>Pathes with spaces are
>allowed, with optional double
>quotes, with optional comment.


A big thank you for this feature. I have tested it and it works like a charm!


Now let me give a self survey, describing why I value this feature very much. I like to separate my data files and my program files as much as possible. So, when I first installed LATEX.VCS I tried to put my data directory into the My Documents directory of my hard drive. I named my data directory, TeXVols, since these are the files on which my TeX compiler, MikTeX acts. That time it did not work and I forgot about it.

When I got Christians enhanced Vedit compiler support files,
I have moved my TeXVols directory into the My Documents directory. Now it works like a charm!


Thanks again,


-peter.