Tue, 12 May 2020 09:29:36 -0500
More README detail
| 0 | 1 | # latex-syntax |
| 2 | ||
| 1 | 3 | This package provides LaTeX syntax highlighting for VSCode. It is intended |
| 3 | 4 | to be used as together with [texlab][] (as a language intelligence and |
| 5 | build system interface) to provide richer syntax highlighting. The grammar | |
| 6 | is derived from LaTeX-Workshop, but has improvements including | |
| 0 | 7 | |
| 8 | a) Highlighting of `todonotes` (see below). | |
| 9 | ||
| 10 | b) Footnote highlighting. | |
| 11 | ||
| 12 | c) Highlighting of `comment` environments as comment blocks. | |
| 13 | ||
| 14 | ### How to enable | |
| 15 | ||
| 16 | This package does not override the standard “LaTeX” grammar. It provides the | |
| 17 | “LaTeX+” grammar. Please select that as the default grammar for `.tex` files. | |
| 18 | ||
| 19 | ### Regarding `todonotes` and `footnote` support | |
| 20 | ||
| 21 | To enable syntax highlighting for `\todo` and `\footnote`, add the following | |
| 1 | 22 | (with possibly customised colours) to your user `settings.json` |
| 23 | (Cmd+Shift+P, “Open Settings (JSON)”): | |
| 0 | 24 | |
| 25 | ```json | |
| 1 | 26 | "editor.tokenColorCustomizations": { |
| 27 | "textMateRules": [ | |
| 28 | { | |
| 29 | "scope": "entity.name.todo.latex", | |
| 30 | "settings": { | |
| 31 | "foreground": "#d17000", | |
| 32 | "fontStyle": "italic", | |
| 33 | } | |
| 34 | }, | |
| 35 | { | |
| 36 | "scope": "support.function.todo.latex", | |
| 37 | "settings": { | |
| 38 | "foreground": "#d17000", | |
| 39 | "fontStyle": "italic", | |
| 0 | 40 | } |
| 1 | 41 | }, |
| 42 | { | |
| 43 | "scope": "entity.name.footnote.latex", | |
| 44 | "settings": { | |
| 45 | "foreground": "#e28000", | |
| 46 | "fontStyle": "italic", | |
| 47 | } | |
| 48 | }, | |
| 49 | { | |
| 50 | "scope": "support.function.footnote.latex", | |
| 51 | "settings": { | |
| 52 | "foreground": "#e28000", | |
| 53 | "fontStyle": "italic", | |
| 54 | } | |
| 55 | } | |
| 56 | ], | |
| 57 | }, | |
| 0 | 58 | ``` |
| 59 | ||
| 60 | [texlab]: https://marketplace.visualstudio.com/items?itemName=efoerster.texlab |