Texmaker and TeXstudioTexmaker customise syntax highlighting.

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
darstedlyplans
Posts: 1
Joined: Wed Feb 10, 2016 1:18 pm

Texmaker customise syntax highlighting.

Post by darstedlyplans »

I'm wondering if there is any way to add new syntax highlighting patterns to Texmaker.

I've been using Texworks for years and I love that special characters $ & { [ etc are highlighted differently form everything else. The rest of the Texworks editor is a little minimalist though and I've been thinking of changing to a more feature rich editor. In particular, I love the "structure" and code folding that Texmaker offers.

In Texworks you can define custom syntax patterns by editing the "syntax-patterns.txt" file. Is there a similar thing hidden in Texmaker somewhere? I've obviously found the custom syntax colouring menu in Preferences>colour but this has a very prescriptive set of categories with no option to highlight custom strings differently.

Alternatively, does anybody know of another editor which offers customisable or Texworks-style syntax highlighting and code folding.

Failing that, Texmaker is open source right? Does anybody know about how syntax highlighting is taken care of? Perhaps I could hack a solution implementing customisable syntax highlighting for Texmaker.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply