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.

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
 ***.stex**)

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

1 Answer

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

Your Answer

 
discard

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.