diff --git a/README.md b/README.md index e4c97502..30db1612 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ [![open issues](https://badgen.net/github/open-issues/valentjn/ltex-ls?label=open/closed%20issues&color=blue)](https://github.com/valentjn/ltex-ls/issues) [![closed issues](https://badgen.net/github/closed-issues/valentjn/ltex-ls?label=)](https://github.com/valentjn/ltex-ls/issues) -**LTEX** provides offline grammar checking of various markup languages in Visual Studio Code using [LanguageTool (LT)](https://languagetool.org/). LTEX currently supports BibTEX, LATEX, Markdown, Org, reStructuredText, R Sweave, and XHTML documents. In addition, LTEX can check comments in many popular programming languages (optional, opt-in). +**LTEX** provides offline grammar checking of various markup languages in Visual Studio Code using [LanguageTool (LT)](https://languagetool.org/). LTEX currently supports BibTEX, ConTEXt, LATEX, Markdown, Org, reStructuredText, R Sweave, and XHTML documents. In addition, LTEX can check comments in many popular programming languages (optional, opt-in). - + The difference to regular spell checkers is that LTEX not only detects spelling errors, but also many grammar and stylistic errors such as: @@ -49,7 +49,7 @@ LTEX is a successor (since it's a fork) of the abandoned [LanguageToo ![Grammar/Spell Checker for VS Code with LanguageTool and LaTeX Support](https://github.com/valentjn/vscode-ltex/raw/release/img/banner-ltex.png) -- **Supported markup languages:** BibTEX, LATEX, Markdown, Org, reStructuredText, R Sweave, XHTML +- **Supported markup languages:** BibTEX, ConTEXt, LATEX, Markdown, Org, reStructuredText, R Sweave, XHTML - Comment checking in **many popular programming languages** (optional, opt-in) - Comes with **everything included,** no need to install Java or LanguageTool - **Offline checking:** Does not upload anything to the internet diff --git a/changelog.xml b/changelog.xml index 2829472a..38a1dafc 100644 --- a/changelog.xml +++ b/changelog.xml @@ -13,6 +13,9 @@ + + Add support for ConTeXt + Add support for strikethrough as in [GitHub Flavored Markdown](https://github.github.com/gfm/#strikethrough-extension-) diff --git a/package.json b/package.json index fec61097..d0ba7491 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,8 @@ "onCommand:_ltex.openMarkdownExample", "onCommand:_ltex.openLatexExample", "onLanguage:bibtex", + "onLanguage:context", + "onLanguage:context.tex", "onLanguage:html", "onLanguage:latex", "onLanguage:markdown", @@ -151,6 +153,8 @@ "scope": "window", "default": [ "bibtex", + "context", + "context.tex", "html", "latex", "markdown", diff --git a/src/CommandHandler.ts b/src/CommandHandler.ts index 13cbdb0a..ff5c9008 100644 --- a/src/CommandHandler.ts +++ b/src/CommandHandler.ts @@ -53,6 +53,8 @@ export default class CommandHandler { private static readonly _defaultCodeLanguageIds: string[] = [ 'bibtex', + 'context', + 'context.tex', 'html', 'latex', 'markdown', @@ -330,6 +332,14 @@ export default class CommandHandler { enabledFileExtensions.add('cs'); break; } + case 'context': { + enabledFileExtensions.add('tex'); + break; + } + case 'context.tex': { + enabledFileExtensions.add('tex'); + break; + } case 'dart': { enabledFileExtensions.add('dart'); break;