<p dir="ltr">It is unfortunately some time ago since Paul has been active on the mailing list... <br>
But he hosts some documentation of the texworks scripting api. <br>
To get access to an input box look at the following url<br>
<a href="http://twscript.paulanorman.com/docs/html/TexWorksQtScripting.html?getTextQWidgetQStringQString.html">http://twscript.paulanorman.com/docs/html/TexWorksQtScripting.html?getTextQWidgetQStringQString.html</a></p>
<p dir="ltr">Best regards <br>
Henrik <br>
</p>
<div class="gmail_quote">Den 30/09/2015 21.45 skrev "Alain Delmotte" <<a href="mailto:leliseron@yahoo.fr">leliseron@yahoo.fr</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <font face="Comic Sans MS">Hi Philip,<br>
      <br>
      As Henrik said, it is the work of a script.<br>
      <br>
      I did write very, very simple scripts to surround a selected text
      by a LaTeX command (I have around 20 of them, simple - embedding
      "xx" in "\textsf{xx}" - or more complex - a whole environment for
      figure - each associated with a short cut key combination), but I
      do not know how to ask for a prompt.<br>
      <br>
      Perhaps you could ask some specialist (for TeXworks, it seems it
      is Paul A. Norman).<br>
      <br>
      Regards,<br>
      <br>
      Alain<br>
      <br>
    </font>
    <div>Le 28/09/2015 12:33, Philip Taylor a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <pre>

Alain Delmotte wrote:

</pre>
      <blockquote type="cite">
        <pre>The definition of the hot keys (Ctrl+-) is hard coded but can be
modified/overwriten in the file shortcuts.ini in the <resources> folder
subfolder\configuration ( C:\Users\<yourname>\TeXworks\configuration for
the official distribution under Windows - I don't know where it is for
the MikTeX and TeX Live distributions and on other systems)
See the manual: A 2 Customising TeXworks - Keyboard shortcuts.
</pre>
      </blockquote>
      <pre>
Would it be possible (do you know) to add a new shortcut such as
"Ctrl-T" which will surround a highlit stretch of text with paired
delimiters such as <name> </name> ?  The user should be prompted for
"name" and TeXworks should add the punctuation automatically.  These
days my source files are almost invariably XML, and it is rather tedious
to have to alternate between oXygen (for the XML) and TeXworks (for the
master/steering file).

** Phil.

</pre>
    </blockquote>
    <br>
  </div>


</blockquote></div>