<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      On 2012-11-17 20:00, Timmy Timmy wrote:<br>
    </div>
    <blockquote
      cite="mid:1353178804.89429.YahooMailNeo@web122002.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div><span style="font-family: arial; font-size: small;"></span>I
          was wondering if there is a simple way to allow the
          <alias> of a code-completion template to include
          numbers. In particular, I'd like to be able to use templates
          such as "x1:=x_{1}". At present, I use templates such as
          "xa:=x_{1}", but I would prefer to be able to use numbers
          because using letters sometimes clashes with other usages, and
          it can take a while to cycle through all the options. I looked
          through the files in "TeXworks/0.4/configuration" for a regex
          "[a-zA-Z]" that I could change to "[a-zA-Z0-9]", but didn't
          find anything. I am using TeXworks 0.4.3 r857 (MiKTeX 2.9) on
          Windows 7 (x64).</div>
      </div>
    </blockquote>
    <br>
    Unfortunately, this is not possible at the moment. TeXworks uses a
    function called findNextWord (defined in src/TWUtils.cpp) to
    recognize words for auto-completion. AFAIK, this is (mostly) modeled
    after TeX's way of handling command words. In particular, this means
    that numbers are not recognized as part of a word and are hence not
    included in the completion.<br>
    <br>
    Maybe Henrik's script
    (<a class="moz-txt-link-freetext" href="http://tug.org/pipermail/texworks/2012q4/005666.html">http://tug.org/pipermail/texworks/2012q4/005666.html</a>) could be able
    to achieve what you want?<br>
    <br>
    Regards,<br>
    Stefan<br>
  </body>
</html>