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

In TeXstudio I want to associate different files with tex coloring scheme. For example, I open .stex file and the syntax is not colored. This .stex file is the same tex file, I just renamed it for some reason.

I've putted .stex extension in my ini file:

 Files\Default%20File%20Filter=TeX files (*.tex *.bib *.sty *.cls *.mp

But it does nothing.

share|improve this question
Welcome to TeX.SX.Note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. – Claudio Fiandrino Feb 7 '13 at 14:08
I guess, you tried to highlight the .stex in the ini entry, but as you can see the markup does not work there. If you added this extension in an own line, then this is very likely the cause of the issue. On the other hand in the file to be highlighted there must some known code that can be highlighted. – Speravir Feb 8 '13 at 1:37
Of course ini file line looks: Files\Default%20File%20Filter=TeX files (*.tex *.bib *.sty *.cls *.mp *.stex). As I said, that file is tex file, with latex syntax. – Linas Feb 8 '13 at 8:22
up vote 3 down vote accepted

You can manually change the current highlighting under View -> Highlighting.

The automatic assignment of file extensions to coloring schemes (and parsing functionality) is not user-editable.

You may file a feature request at https://sourceforge.net/p/texstudio/feature-requests/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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