<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2016-07-07 11:21 GMT-03:00 Martin Frb <span dir="ltr"><<a href="mailto:lazarus@mfriebe.de" target="_blank">lazarus@mfriebe.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On 07/07/2016 13:36, Fabio Luis Girardi wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Is much harder to change this to, when press ( do (my selection), instead of erase and replace my selection by ( ?<br>
<br>
</blockquote>
</span><a href="http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros" rel="noreferrer" target="_blank">http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros</a><br>
<a href="http://wiki.lazarus.freepascal.org/Editor_Macros_PascalScript" rel="noreferrer" target="_blank">http://wiki.lazarus.freepascal.org/Editor_Macros_PascalScript</a><br>
<br>
Assign the below macro to the ( key/keycombo<br>
<br>
begin<br>
  if caller.SelAvail then begin<br>
    caller.SelText := '('+caller.SelText+')';<br>
  end<br>
  else<br>
    ecChar('(');<br>
end.<br>
<br>
</blockquote></div><br>Should I to install some package on Lazarus to get this?<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div></div>