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!
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!
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.
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 '19 at 07:47
Whilst a different Windows version and TeXworks installer, I found the syntax-pattern.txt file on Windows 10 when installed with TeX Live 2021 in this directory:
C:\Users\[Your user]\.texlive2021\texmf-config\texworks\configuration\
Came across this question but the accepted answer was not helpful for TeX Live hence this answer.
syntax-pattern.txt? – jon Jul 22 '15 at 02:44