<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 August 2013 18:38, Vitali Samurov <span dir="ltr"><<a href="mailto:vitali.s@elisanet.fi" target="_blank">vitali.s@elisanet.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm trying to add a new compiler toolchain in Geany and would like to highlight an error (waring) line in the code by using 'Error regular expression' feature.<br>
<br>
I have added this:<br>
(.+)\line\s+([0-9]+)<br>
<br>
And was able to get line 'E011 The value of symbolic....' colored in RED:<br>
<br>
/mkl2mkp_en -i "DIYGeigerCounter_ver_1-3.mkl" (in directory: /../Temp)<br>
MKP file  DIYGeigerCounter_ver_1-3.mkl<br>
E011 The value of symbolic reference is not defined  in line  77 - RECEIVE1<br>
First page:  0<br>
Length (pages):  6<br>
Compilation failed.<br>
<br>
<br>
But editor does not show /highlight the line in edit window. Is it possible to do that?<br></blockquote><div><br></div><div>Yes, but the regular expression has to have two captures, one that extracts the line number and one that extracts the filename so it knows which file and which line. And the filename and line no must be in the same line in your compiler output.  That does not appear to be the case in the output above (but it may simply be wrapped by the mailer).</div>
<div><br></div><div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Br,<br>
Vitali<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
<br>
-- <br>
<br>
--- Sent from the web-mail ---<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br></div></div>