3

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!

  • 1
    That path is a Unix(-like) path, and unlikely to exist on Windows. Can't you just search for syntax-pattern.txt? – jon Jul 22 '15 at 2:44
  • @jon I tried the search at Windows start, but no result turned up. – Xiao Jul 22 '15 at 2:50
  • Looks like the manual is available on Google Drive, the link to which is available here. I use neither Windows nor TeXworks, so I need to stop here. Good luck! – jon Jul 22 '15 at 3:07
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Symbol 1 Jul 22 '15 at 3:13
3

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.

  • For others: note that the colors are described in words (Google css colors in order to get a list of what's available). The code after the color (such as \\(?:[A-Za-z@]+|.)) is to do with which characters escape the color mode (I think). – ahorn Mar 27 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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