TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the minted environment in order to insert source code in a document. Contrary to lstlistings or verbatim environment, Texmaker does interpret the contains of minted environment.

For example if I have a $ inside a bash script all lines below will be green because Texmaker considers that an equation began inside the minted environment.

Does it exist a way to configure Texmaker to do with minted as it does with listings ?

share|improve this question

closed as off-topic by Jubobs, Jesse, Adam Liter, cmhughes, Guido Mar 18 '14 at 2:16

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it turns out to be a feature request for texmaker. – Jubobs Mar 18 '14 at 0:18

I think the short answer is 'no', at least not at present. Looking through the interface, while you can adjust the colours used for different environments, you can't alter how these are defined. There is also 'syntax.txt' or similar file to allow adjustment outside of the GUI, either. Thus the only way to address this issue seems to be to make a feature request to the Texmaker maintainers.

share|improve this answer

Not a straightforward solution but a workaround in TeXmaker is to add %$ to balance the $ in bash script to regain the normal syntax colouring in minted environment: Related issue at TeXmaker issue tracker

Demo example borrowed from TeX.SX: Displaying Linux commands in LaTeX by User You

enter image description here

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.