https://github.com/dart-lang/dart-syntax-highlight
Tools and documentation for how Dart code is formatted
https://github.com/dart-lang/dart-syntax-highlight
Last synced: 4 months ago
JSON representation
Tools and documentation for how Dart code is formatted
- Host: GitHub
- URL: https://github.com/dart-lang/dart-syntax-highlight
- Owner: dart-lang
- License: bsd-3-clause
- Created: 2020-02-10T18:20:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T00:39:19.000Z (6 months ago)
- Last Synced: 2025-01-30T06:32:21.855Z (4 months ago)
- Language: Dart
- Size: 144 KB
- Stars: 22
- Watchers: 33
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Solutions in this repo

## grammars/dart.json
A [TextMate](https://macromates.com/manual/en/language_grammars) language grammar for Dart.
Used by:
* The [Dart-Code](https://github.com/Dart-Code/Dart-Code) Dart extension for VS Code.
* VS Code's [built-in Dart](https://github.com/microsoft/vscode/tree/main/extensions/dart) basic language support.
* [Dart & Flutter DevTools](https://github.com/flutter/devtools).
* [GitHub](https://github.com) via [Linguist](https://github.com/github/linguist).
* [dart.dev](https://dart.dev) via [Shiki](https://shiki.style).When updating the grammar, consider raising issues (or PRs) to update the
following files which do not have automated updates from this grammar:* [Dart-Code/Dart-Code/syntaxes/dart.json](https://github.com/Dart-Code/Dart-Code/blob/master/syntaxes/dart.json)
* [flutter/devtools/packages/devtools_app/assets/dart_syntax.json](https://github.com/flutter/devtools/blob/master/packages/devtools_app/assets/dart_syntax.json)# Other solutions
## highlight.js
[highlight.js](https://highlightjs.org/) is web based syntax highlighter that
can syntax highlight `` references on a web page.
* [Dart-specific code](https://github.com/highlightjs/highlight.js/blob/main/src/languages/dart.js)
* Used by:
* [DartDoc](https://github.com/dart-lang/dartdoc)
* See https://github.com/dart-lang/dartdoc/tree/main/lib/resources
* [pub.dev](https://github.com/dart-lang/pub-dev/)
* See https://github.com/dart-lang/pub-dev/tree/master/third_party/highlight## CodeMirror
[CodeMirror](https://codemirror.net/) is a web-based editing component
with Dart highlighting support.* CodeMirror 5 [Dart mode implementation](https://github.com/codemirror/codemirror5/tree/master/mode/dart)
* Used by:
* DartPad