Neil Hodgson wrote:
Robert:

I want to teach SciTE to complile a .pas file (on Ctrl-F7) with an old compiler like

tpc.exe <file>

command.compile.*.pas=tpc "$(FilePath)"

and at best when there is a compiler error (exit status 1) parse this simple output scheme:

Turbo Pascal  Version 6.0  Copyright (c) 1983,90 Borland International
MODCOMM.PAS(71): Error 36: BEGIN expected.
  x
  ^

  Borland format errors are understood.

Thanks. The call works with

command.compile.*.pas=\tp60\tpc.exe "$(FileName)"

Yet it only reports the ExitStatus 0 or 1:

\tp60\tpc.exe "APP"
Exit code: 1
\tp60\tpc.exe "APP"
Exit code: 0

The error message detection or cursor placement is not done so far - also no 
display of the (stderr) output.
Is this possible - maybe with some external python scripting?
And/or how to enable at least display of stdout/stderr outputs in the SciTE 
execution window?

Robert


beep and set the cursor to the error line

  Doesn't beep.

Is this possible? probably with some Python script support?

  Write a script that runs the command and beeps depending on exit status.

  Neil

_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to