Skip to content

Deploy Syntaxer

Oleg Shilo edited this page Sep 17, 2021 · 2 revisions

Latest C# syntax

The CS-Script plugin delivers two major sets of functionality. Script execution and Intellisense-like syntax services (e.g. auto-completion).

The embedded syntax services are only capable of supporting up to C# 7 syntax. Any new C# features require .NET Core/5 thus they cannot be supported by the plugin which targets .NET Framework out of the box.

However, you can enable the latest C# syntax starting from version v1.7.25 by configuring the plugin to use external (not the embedded) syntax services that are specifically designed for CS-Script. The configurations steps are below:

  1. Enable the .NET Core/5 CS-Script engine (https://github.com/oleg-shilo/cs-script.npp/wiki/Deploy-CS-Script)
  2. Install CS-Script Syntaxer. It is recommended to do it from Choco: https://community.chocolatey.org/packages/cs-syntaxer
choco install cs-syntaxer

After that, you can open Notepad++ and navigate to the CS-Script Settings dialog and select the "Custom location" option for the Syntaxer location:

Alternatively, you can just click "Enable .NET 5/Core integration"

Note, you can update Syntaxer either from PowerShell (or command prompt) with the following command:

choco upgrade cs-syntaxer

You can also do it from Notepad++ from the "Update" tab in the Settings dialog:

Clone this wiki locally