[Tex/LaTex] Where is TeXworks’ syntax-pattern.txt file (on windows 7)

highlightingtexworks

I was trying to change my TeXworks editor's background to black, some suggested it is possible to edit this file :

~/.TexWorks/configuration/syntax-pattern.txt

but I could not locate this .txt file.

Thank you for your help!

Best Answer

In Windows, with MiKTeX 2.9 distribution, you can get the required file on the following path:

"C:\Users\Username\AppData\Local\MiKTeX\2.9\TeXworks\0.4\configuration\syntax-patterns.txt"

Of course Username is your Windows user name.

Note also that this file is not for background colors but for text syntax highlighting. You can find more details in this link on how to customize colors and syntax highlighting.