You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Adding a support for a new language may consist of several parts, and may be time consuming.


The following parts of a new language support should be considered:

  • recognizing files, so that NetBeans knows they belong to the new language
  • adding a project type, if needed, so that the files can be built, run and debugged
  • adding syntax highlighting
  • adding code completion and other editor features
  • adding debugger

Recogizing Files


Use the New File/Module Developer/File Type wizard. Please note a MIME type should be specified - this MIME type will be the key under which other services will be looked up.

Adding Syntax Highlighting


Syntax highlighting can be implemented either by writing a lexer module for NetBeans, or by re-using TextMate grammars. Please see the use cases and an example grammar registration for the latter.

Adding Code Completion and Other Editor Features


These can be done either by writing them against NetBeans APIs, or by delegating to an LSP Server. Please see Typescript LSP server integration for the latter.


  • No labels