Skip to content

Commit 2a88605

Browse files
committed
Add intro to syntax highlighting docs
1 parent 579b8e8 commit 2a88605

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/section-4-syntax-highlighting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ permalink: syntax-highlighting
44
---
55

66
# Syntax Highlighting
7+
8+
Syntax highlighting is a very common feature in applications that deal with code. Tree-sitter has built-in support for syntax highlighting, via the [`tree-sitter-highlight`](https://github.com/tree-sitter/tree-sitter/tree/master/highlight) library. This system is currently used on GitHub.com for highlighting code written in several langauges.
9+
10+
**Note - If you are working on syntax highlighting in the [Atom](https://atom.io/) text editor, you should consult [this page](https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/) in the Atom Flight Manual. Atom currently uses a different syntax highlighting system that is also based on Tree-sitter, but is older than the one described in this document.**

0 commit comments

Comments
 (0)