From: Matthias P. <mat...@gm...> - 2012-03-21 21:02:11
|
Hello, In feature request 3440498 I had asked how to add support for a new file extension including a different syntax hl. On of the comments was to create a new file based on /tunk/utilities/qxs/tex.qnfa. However I do not see at all how I should add new syntax hl rules in that file. For TexWorks (another editor) it can be achieved with this few lines: [LaTeX DTX] # comments red Y \^\^A.* # Guards orange N % limegreen N % crimson N % # special characters darkred N \^\^\^\^\^[0-9a-z]{5} darkred N \^\^\^\^[0-9a-z]{4} darkred N \^\^\^[0-9a-z]{3} darkred N \^\^[0-9a-z]{2} darkred N [$#^_{}&] gray N ^%%.* gray N ^% # Macrocode green N \\(?:begin|end)\{macrocode\} # LaTeX environments darkgreen N \\(?:begin|end)\s*\{[^}]*\} # control sequences blue N \\(?:[A-Za-z@:_]+|.) (from http://tex.stackexchange.com/questions/31004/editor-for-dtx-files) So how would I achieve the same for texstudio? Matthias |