Changeset 1360


Ignore:
Timestamp:
Oct 15, 2011, 3:08:26 PM (6 years ago)
Author:
stefan
Message:

added full completion support for \lstinputlisting

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/codehelper/commands.xml

    r1257 r1360  
    357357
    358358  <command name="lefteqn" usage="\lefteqn{@eqn@}" hint="prints eqn in display math style">
    359     <argument name="eqn">
    360     </argument>
     359    <argument name="eqn"/>
    361360  </command>
    362361
    363362  <command name="linebreak" usage="\linebreak[@number@]" hint="break the current line">
    364     <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is">
    365     </argument>
     363    <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is"/>
    366364  </command>
    367365
     
    369367  </command>
    370368
     369  <command name="lstinputlisting" usage="\lstinputlisting{@file@}" hint="insert source code with highlighting">
     370    <argument name="file" type="file" value="" completion="true"/>
     371  </command>
     372
    371373  <command name="location" usage="\location{@address@}" hint="modifies your organization's standard address">
    372     <argument name="address">
    373     </argument>
     374    <argument name="address"/>
    374375  </command>
    375376
    376377  <command name="makebox" usage="\makebox[@width@][@position@]{@text@}"
    377378           hint="creates a box to contain the specified text">
    378     <argument name="width" hint="the width of the box">
    379     </argument>
     379    <argument name="width" hint="the width of the box"/>
    380380    <argument name="position" hint="specify the position of text within the box">
    381381      <argumentValue value="l" hint="flushleft"/>
     
    383383      <argumentValue value="s" hint="interword space adjusted so text fills box exactly"/>
    384384    </argument>
    385     <argument name="text">
    386     </argument>
     385    <argument name="text"/>
    387386  </command>
    388387
  • trunk/src/jlatexeditor/codehelper/IncludeCodeHelper.java

    r1309 r1360  
    2222
    2323  public IncludeCodeHelper() {
    24     pattern = new PatternPair("\\\\(include(?:graphics)?|input|bibliography)(?:\\[[^\\]]*\\])?\\{([^{}]*/)?([^{}/]*)");
     24    pattern = new PatternPair("\\\\(include(?:graphics)?|input|bibliography|lstinputlisting)(?:\\[[^\\]]*\\])?\\{([^{}]*/)?([^{}/]*)");
    2525  }
    2626
Note: See TracChangeset for help on using the changeset viewer.