FLUTTER ECOSYSTEM

val_highlight

Syntax highlighting for 55 languages in pure Dart. Incremental updates, themes, VS Code theme import, and HTML output. Runs on every platform.

Latest version
0.1.1
30-day downloads
31.5K
Likes
6
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

val_highlight is a pure Dart package providing syntax highlighting for 55 languages with support for incremental updates, customizable themes, and import of VS Code themes. It generates HTML output and runs seamlessly across all major platforms including Android, iOS, Linux, macOS, Web, and Windows. Ideal for developers building code editors or documentation tools that require real-time language-specific highlighting without external dependencies.

Use cases

  • Code editor implementations
  • Documentation generation
  • Real-time syntax preview
  • Educational coding apps
  • Static site generation with highlighted code
  • Cross-platform code display

Key features

  • Supports 55 programming languages
  • Incremental highlighting updates
  • VS Code theme import capability
  • HTML output generation
  • Pure Dart implementation
  • Multi-platform compatibility

Suitable for

  • Developers building code editors
  • Apps requiring dynamic syntax highlighting
  • Web and mobile apps with code snippets
  • Documentation and tutorial platforms
  • Projects needing lightweight syntax highlighting

Considerations

  • May require optimization for very large code files
  • Theme customization requires understanding of CSS/JSON formats
  • Limited to predefined language grammars
  • No built-in line numbering
  • Performance depends on update granularity
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add val_highlight

Categories

Source repository

Projects using this package

No data available yet.

Rankings