Highlighting of non-standard environments

TXS - Help
2012-02-20
2012-10-17
  • t.schreiter

    t.schreiter - 2012-02-20

    Hi,

    The environment "dcases" and other non-standard environments, are indicated as
    "unrecognized commands".

    It's not a big deal, though can it be fixed easily?

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-02-20

    you need to make them known to txs by providing a cwl file.
    The cwl needs to be placed where texstudio.ini is located. The file contains
    simply one valid command per line, in your case \begin{dcase}
    \end{dcase}
    Details are described in the usermanual.
    To which package belongs that environment ? (normally a automatic parser
    analyses the packages and generates a cwl file automatically)

     
  • t.schreiter

    t.schreiter - 2012-02-21

    Dcases belongs to mathtools.

    What about environments the user defines by \newenvironment? An automatic
    parsing should be similar to parsing a \newcommand...

    Again, it is not a big deal; it is a nice-to-have.

    (Btw. I have been writing my thesis for two weeks now, and Texstudio is the
    best editor out there. It easily beats Texniccenter and other free editors.
    Thanks a lot for your efforts implementing this powerful editor!)

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-02-21

    newenvironment code seems not to work though it is implemented, i will have a
    look later.

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-02-21

    error fixed and mathtools.cwl added in svn version. Can you compile the code
    yourself ?

     
  • t.schreiter

    t.schreiter - 2012-02-22

    Is there a manual how to compile the SVN version?

    Otherwise I'll just wait for the next release.

    Thank you for the bugfix.

     

Log in to post a comment.