texstudio completion of ntheorem commands

I want to have Texstudio add completions for some ntheorem package commands, including:

\begin{Definition}[]
\end{Definition}


and

\begin{Proposition}[]
\end{Proposition}


I looked at the CWL file and could not find references to any of the \begin{} and \end{} environment definitions, so I was not sure how to add these. Any suggestions on how to include this syntax in the ntheorem.cwl file?

As a reference, I looked at some other posted questions on related topics, but they were just directing users to include the ntheorem.cwl file in the list of completions, but were not asking about syntax.

Add to TexStudio autocompletion

TexStudio autocompletion

Autocompletion in Texstudio

1 Answer

The format is documented in the user manual. Just write the commands as you've done in your examples.

See other cwl files for examples, e.g. latex-document.cwl

• Okay cool. yeah, I looked over the example in latex-document.cwl and looks much easier than I thought. Thanks for the help. – krishnab Jun 12 '16 at 16:06