This VS Code extension provides syntax highlighting for LaTeX log files using the TextMate grammar format. It is based on the syntax definition from the official TextMate LaTeX Bundle, specifically the LaTeX log syntax file found here.
-
Syntax Highlighting: LaTeX log files will now have proper syntax highlighting for various LaTeX-related log elements such as:
- Errors
- Warnings
- Info messages
- Comments
- LaTeX commands
- Block elements
-
Based on TextMate Grammar: This extension uses the TextMate grammar format, which provides an efficient and consistent way to highlight LaTeX log files.
To install this extension:
- Clone the repository or download it as a ZIP file.
- Open VS Code and navigate to the Extensions panel.
- Click the ... button and select "Install from VSIX...".
- Select the
.vsix
file you have downloaded and installed it.
Alternatively, you can also install the extension by directly using the .tmLanguage
files or building a .vsix
package.
This extension recognizes and highlights the following syntax patterns:
- Errors: Highlight
Error:
messages with distinct coloring. - Warnings:
Warning:
andOverfull
/Underfull
messages are highlighted. - Info:
Info:
messages receive different highlighting. - Commands: LaTeX commands are clearly identified.
- Comments: Comments within LaTeX logs are colored accordingly.
package.json
: Contains metadata and configuration for the VS Code extension.syntaxes/LaTeXLog.tmLanguage
: The TextMate grammar for LaTeX log files, converted from the original.plist
.syntaxes/LaTeXLog.tmLanguage.json
: A JSON version of the TextMate grammar for compatibility with VS Code.syntaxes/LaTeXLog.yaml
: A YAML-based alternative for syntax definition.
Once the extension is installed, any LaTeX log file (typically with the .log
extension) will be automatically associated with the LaTeX Log syntax, providing syntax highlighting throughout the file.
This project is licensed under the MIT License. See the LICENSE file for details.
This extension borrows its syntax highlighting rules from the TextMate LaTeX Bundle. Special thanks to the TextMate community for providing the initial syntax grammar.
When you copy this into your README.md
file, it will show as raw Markdown text and preserve the formatting and code fences as requested.