Tree-sitter: 馃帹 Diffrent `Syntax Highlighting` for each language... Is that possible?

Created on 26 Jan 2020  路  4Comments  路  Source: tree-sitter/tree-sitter

鉁岋笍 Hi!
馃攲 Interesting expansion.

As an example, I'll take the IDE called 芦NotePad++禄.
_See screenshots below_:

image

Now I put here some code, then I switch to other languages...

C

image

JavaScript

image

AutoHotkey

image

C++

image

CSS

image

HTML

image

Different syntax, color, style, font, weight, brackets... etc.
I want to see some good manuals to do these for 芦VS Code禄.

Best Regards! 馃嵒馃憤

Most helpful comment

Hi there. Tree-sitter is indeed a tool that you can use to build syntax highlighting support for a text editor, but integration into an existing editor is a process that depends much more on the editor than tree-sitter itself. As such, we鈥檙e not really in a position to provide detailed manuals on how to integrate your text editor, beyond the official documentation on using the parser API.

If you鈥檙e looking for VS Code integration, you might want to look at the extension for VSCode on the Visual Studio Marketplace. The issue tracking native support may also be of interest to you. Please note that Atom already provides its highlighting through tree-sitter.

All 4 comments

Hi there. Tree-sitter is indeed a tool that you can use to build syntax highlighting support for a text editor, but integration into an existing editor is a process that depends much more on the editor than tree-sitter itself. As such, we鈥檙e not really in a position to provide detailed manuals on how to integrate your text editor, beyond the official documentation on using the parser API.

If you鈥檙e looking for VS Code integration, you might want to look at the extension for VSCode on the Visual Studio Marketplace. The issue tracking native support may also be of interest to you. Please note that Atom already provides its highlighting through tree-sitter.

I鈥檓 going to close this issue for now, but please feel free to leave further comments in this thread.

@patrickt

but integration into an existing editor is a process that depends much more on the editor than tree-sitter itself.

I don't need for "Notepad++" I need for 芦VS Code禄. It was just an example cuz in "Notepad++" I can do with Syntax Highlighting everything what I want.

The second paragraph of the post you are quoting goes over current support in VS Code for Tree-sitter.

Was this page helpful?
0 / 5 - 0 ratings