Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
4  
This question appears to be off-topic because it turns out to be a feature request for texmaker. –  Jubobs Mar 18 at 0:18
add comment

closed as off-topic by Jubobs, Jesse, Adam Liter, cmhughes, Guido Mar 18 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.

2 Answers

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
add comment

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
add comment

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